indicator: fix single-click to open app and remove unnecessary capture
This commit is contained in:
parent
1d666fcea0
commit
296de907b5
1 changed files with 2 additions and 2 deletions
|
@ -139,11 +139,11 @@ int main(int argc, char** argv)
|
|||
QObject::connect(&model, &DevicesModel::rowsChanged, &model, [&systray, &model]() {
|
||||
systray.setToolTip(i18np("%1 device connected", "%1 devices connected", model.rowCount()));
|
||||
});
|
||||
QObject::connect(&systray, &QSystemTrayIcon::activated, [&iface](QSystemTrayIcon::ActivationReason reason) {
|
||||
QObject::connect(&systray, &QSystemTrayIcon::activated, [](QSystemTrayIcon::ActivationReason reason) {
|
||||
if (reason == QSystemTrayIcon::Trigger) {
|
||||
const QString kdeconnectAppExecutable = QStandardPaths::findExecutable(QStringLiteral("kdeconnect-app"), { QCoreApplication::applicationDirPath() });
|
||||
if (!kdeconnectAppExecutable.isEmpty()) {
|
||||
QProcess::startDetached(kdeconnectAppExecutable);
|
||||
QProcess::startDetached(kdeconnectAppExecutable, {});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue