Просмотр исходного кода

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 лет назад
Родитель
Сommit
7a1dbcf2fe
1 измененных файлов с 1 добавлено и 1 удалено
  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,