mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Use LibraryWindow::closeApp to exit from the system tray context menu
This commit is contained in:
parent
9fafa06063
commit
fc85f77d15
@ -47,7 +47,7 @@ TrayIconController::TrayIconController(QSettings *settings, LibraryWindow *windo
|
||||
connect(restoreAction, &QAction::triggered, this, &TrayIconController::showWindow);
|
||||
|
||||
auto quitAction = new QAction(tr("&Quit"), this);
|
||||
connect(quitAction, &QAction::triggered, window, &QMainWindow::close);
|
||||
connect(quitAction, &QAction::triggered, window, &LibraryWindow::closeApp);
|
||||
|
||||
trayIconMenu = new QMenu(this->window);
|
||||
trayIconMenu->addAction(restoreAction);
|
||||
|
Loading…
Reference in New Issue
Block a user