From 8e9925d6c8b8fcae9e75783635c36b279338a92a Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sun, 22 Dec 2024 16:42:36 -0500 Subject: [PATCH] fix: Mac os missing Quit from tray menu --- src/apps/deskflow-gui/MainWindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/apps/deskflow-gui/MainWindow.cpp b/src/apps/deskflow-gui/MainWindow.cpp index cb3200477..10736920e 100644 --- a/src/apps/deskflow-gui/MainWindow.cpp +++ b/src/apps/deskflow-gui/MainWindow.cpp @@ -577,9 +577,14 @@ void MainWindow::open() QList 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);