Display a configure entry on the menu
This commit is contained in:
parent
afa299266e
commit
6aa41a6ab9
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue