Przeglądaj źródła

Don't set up tray context menu on macOS, even if not building app bundle

Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
Claudio Cambra 3 lat temu
rodzic
commit
7a1dbcf2fe
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/gui/systray.cpp

+ 1 - 1
src/gui/systray.cpp

@@ -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,