From 6aa41a6ab9056f784866dbc300d2fb0b39670649 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 23 Nov 2016 18:58:16 +0100 Subject: [PATCH] Display a configure entry on the menu --- indicator/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indicator/main.cpp b/indicator/main.cpp index 24c4b06a7..6ff449bc4 100644 --- a/indicator/main.cpp +++ b/indicator/main.cpp @@ -50,6 +50,11 @@ int main(int argc, char** argv) model.setDisplayFilter(DevicesModel::Reachable | DevicesModel::Paired); QMenu menu; + auto configure = menu.addAction(i18n("Configure...")); + QObject::connect(configure, &QAction::triggered, configure, [](){ + QProcess::startDetached("kcmshell5", {"kdeconnect"}); + }); + QSystemTrayIcon systray; systray.setIcon(QIcon::fromTheme("kdeconnect")); systray.setContextMenu(&menu);