fix: Mac os missing Quit from tray menu
This commit is contained in:
@ -577,9 +577,14 @@ void MainWindow::open()
|
||||
QList<QAction *> trayActions{m_actionStartCore, m_actionStopCore, nullptr, m_actionQuit};
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
// Duplicate quit needed for mac os tray menu
|
||||
QAction *actionTrayQuit = new QAction(tr("Quit Deskflow"), this);
|
||||
actionTrayQuit->setShortcut(QKeySequence::Quit);
|
||||
|
||||
m_actionRestore->setText(tr("Open Deskflow"));
|
||||
trayActions.insert(3, m_actionRestore);
|
||||
trayActions.insert(4, nullptr);
|
||||
trayActions.append(nullptr);
|
||||
trayActions.append(actionTrayQuit);
|
||||
#endif
|
||||
m_TrayIcon.create(trayActions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user