Fix kdeconnect-cli device list
Summary: Previously, the .devices() call passed the parameters in the wrong order. I checked the order in the interface and the daemon, and this was the only place it went wrong. Now running `kdeconnect-cli -l` correctly lists all paired devices, even if unreachable. Test Plan: Tested with both a reachable and unreachable device. Reviewers: #kde_connect, apol Reviewed By: #kde_connect, apol Subscribers: apol Differential Revision: https://phabricator.kde.org/D9060
This commit is contained in:
parent
227e264042
commit
6a6b97e7c9
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ int main(int argc, char** argv)
|
|||
blockOnReply(iface.acquireDiscoveryMode(id));
|
||||
QThread::sleep(2);
|
||||
}
|
||||
const QStringList devices = blockOnReply<QStringList>(iface.devices(paired, reachable));
|
||||
const QStringList devices = blockOnReply<QStringList>(iface.devices(reachable, paired));
|
||||
|
||||
for (const QString& id : devices) {
|
||||
if (parser.isSet(QStringLiteral("id-only"))) {
|
||||
|
|
Loading…
Reference in a new issue