[CLI] Unpair unreachable devices
Summary: You should be ableto unpair unreachable devices with the CLI Reviewers: kdeconnect, albertvaka Reviewed By: albertvaka Subscribers: albertvaka Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D15677
This commit is contained in:
parent
14994132f8
commit
5ae67e0feb
1 changed files with 1 additions and 3 deletions
|
@ -197,9 +197,7 @@ int main(int argc, char** argv)
|
||||||
blockOnReply(iface.releaseDiscoveryMode(id));
|
blockOnReply(iface.releaseDiscoveryMode(id));
|
||||||
} else if(parser.isSet(QStringLiteral("unpair"))) {
|
} else if(parser.isSet(QStringLiteral("unpair"))) {
|
||||||
DeviceDbusInterface dev(device);
|
DeviceDbusInterface dev(device);
|
||||||
if (!dev.isReachable()) {
|
if (!dev.isTrusted()) {
|
||||||
QTextStream(stderr) << i18n("Device does not exist") << endl;
|
|
||||||
} else if(!dev.isTrusted()) {
|
|
||||||
QTextStream(stderr) << i18n("Already not paired") << endl;
|
QTextStream(stderr) << i18n("Already not paired") << endl;
|
||||||
} else {
|
} else {
|
||||||
QTextStream(stderr) << i18n("Unpaired") << endl;
|
QTextStream(stderr) << i18n("Unpaired") << endl;
|
||||||
|
|
Loading…
Reference in a new issue