We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0e8991 commit fbf5fbdCopy full SHA for fbf5fbd
1 file changed
src/mainwindow.cpp
@@ -60,6 +60,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent),
60
QAction *restore = trayMenu->addAction(tr("Restore"));
61
connect(restore, &QAction::triggered, this, &MainWindow::showNormal);
62
QAction *close = trayMenu->addAction(tr("Close"));
63
+ connect(close, &QAction::triggered, this, &MainWindow::showNormal); // Needed for close to work when window is hidden
64
connect(close, &QAction::triggered, this, &MainWindow::close);
65
connect(trayIcon, &QSystemTrayIcon::activated, this, [this](QSystemTrayIcon::ActivationReason reason) {
66
switch (reason) {
0 commit comments