Reflect property change when unpairing
There's no pairStatusChanged when the device is not connected to anything (be it because it's unreachable at the moment).
This commit is contained in:
parent
b67761a442
commit
209e3e2842
2 changed files with 2 additions and 0 deletions
|
@ -176,6 +176,7 @@ void Device::unpair()
|
||||||
dl->userRequestsUnpair();
|
dl->userRequestsUnpair();
|
||||||
}
|
}
|
||||||
KdeConnectConfig::instance()->removeTrustedDevice(id());
|
KdeConnectConfig::instance()->removeTrustedDevice(id());
|
||||||
|
Q_EMIT trustedChanged(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Device::pairStatusChanged(DeviceLink::PairStatus status)
|
void Device::pairStatusChanged(DeviceLink::PairStatus status)
|
||||||
|
|
|
@ -271,6 +271,7 @@ void KdeConnectKcm::unpair()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setCurrentDeviceTrusted(NotTrusted);
|
||||||
currentDevice->unpair();
|
currentDevice->unpair();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue