Make notification clicks only show the window
This commit is contained in:
parent
ad0dc3abe7
commit
7675fe59a5
@ -71,7 +71,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
|||||||
connect(quit, &QAction::triggered, this, &MainWindow::quit);
|
connect(quit, &QAction::triggered, this, &MainWindow::quit);
|
||||||
connect(shtoggle, &QAction::triggered, this, &MainWindow::toggleVisible);
|
connect(shtoggle, &QAction::triggered, this, &MainWindow::toggleVisible);
|
||||||
connect(picker, &QAction::triggered, [] { ColorPickerScene::showPicker(); });
|
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) {
|
connect(tray, &QSystemTrayIcon::activated, this, [this](QSystemTrayIcon::ActivationReason reason) {
|
||||||
if (reason == QSystemTrayIcon::DoubleClick) toggleVisible();
|
if (reason == QSystemTrayIcon::DoubleClick) toggleVisible();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user