Don't set up tray context menu on macOS, even if not building app bundle
authorClaudio Cambra <claudio.cambra@gmail.com>
Thu, 29 Sep 2022 18:01:35 +0000 (20:01 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Fri, 30 Sep 2022 19:45:30 +0000 (21:45 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
src/gui/systray.cpp

index 238406474058ebe88d05d8cb9db70d85ac930238..ee5200038651b8da27e9dd361987e39791f08344 100644 (file)
@@ -78,7 +78,7 @@ Systray::Systray()
     setUserNotificationCenterDelegate();
     checkNotificationAuth(MacNotificationAuthorizationOptions::Default); // No provisional auth, ask user explicitly first time
     registerNotificationCategories(QString(tr("Download")));
-#else
+#elif !defined(Q_OS_MACOS)
     connect(AccountManager::instance(), &AccountManager::accountAdded,
         this, &Systray::setupContextMenu);
     connect(AccountManager::instance(), &AccountManager::accountRemoved,