diff --git a/indicator/deviceindicator.cpp b/indicator/deviceindicator.cpp index 6f36428aa..87737a549 100644 --- a/indicator/deviceindicator.cpp +++ b/indicator/deviceindicator.cpp @@ -87,12 +87,15 @@ DeviceIndicator::DeviceIndicator(DeviceDbusInterface* device) sftpIface->startBrowsing(); sftpIface->deleteLater(); }); + setWhenAvailable(device->hasPlugin("kdeconnect_sftp"), [browse](bool available) { browse->setEnabled(available); }, this); + auto findDevice = addAction(i18n("Find device")); connect(findDevice, &QAction::triggered, device, [device](){ FindMyPhoneDeviceDbusInterface* iface = new FindMyPhoneDeviceDbusInterface(device->id(), device); iface->ring(); iface->deleteLater(); }); + setWhenAvailable(device->hasPlugin("kdeconnect_findmyphone"), [findDevice](bool available) { findDevice->setEnabled(available); }, this); // addAction(i18n("Send file")); //TODO