From 7675fe59a5f2199bfb14c855bf66d103264e0735 Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Mon, 10 Jul 2017 21:47:04 +0200 Subject: [PATCH] Make notification clicks only show the window --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index b54582d..7bcc344 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -71,7 +71,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi connect(quit, &QAction::triggered, this, &MainWindow::quit); connect(shtoggle, &QAction::triggered, this, &MainWindow::toggleVisible); connect(picker, &QAction::triggered, [] { ColorPickerScene::showPicker(); }); - connect(tray, &QSystemTrayIcon::messageClicked, this, &MainWindow::toggleVisible); + connect(tray, &QSystemTrayIcon::messageClicked, this, &QWidget::show); connect(tray, &QSystemTrayIcon::activated, this, [this](QSystemTrayIcon::ActivationReason reason) { if (reason == QSystemTrayIcon::DoubleClick) toggleVisible(); });