Skip to content
Permalink
Browse files
Hide system tray icon on Windows
  • Loading branch information
NathanW2 committed Mar 24, 2017
1 parent 9c5abc9 commit 4c0ace95691b562270a0d94d8b434844400f455f
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/app/qgisapp.cpp
@@ -1141,6 +1141,11 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
mTray->hide();
#endif

#ifdef Q_OS_WIN
// We only want the system notifications, no need for constant menubar icon
mTray->hide();
#endif


connect( QgsApplication::taskManager(), &QgsTaskManager::statusChanged, this, &QgisApp::onTaskCompleteShowNotify );

@@ -12417,12 +12422,20 @@ void QgisApp::showSystemNotification( const QString title, const QString message
#ifdef Q_OS_MAC
// Menubar icon is hidden on macOS, by default. Show to enable notification bubbles
mTray->show();
#endif
#ifdef Q_OS_WIN
// Menubar icon is hidden on macOS, by default. Show to enable notification bubbles
mTray->show();
#endif
mTray->showMessage( title, message );
#ifdef Q_OS_MAC
// Re-hide menubar icon
mTray->hide();
#endif
#ifdef Q_OS_WIN
// Re-hide menubar icon
mTray->hide();
#endif
}

void QgisApp::osmDownloadDialog()

2 comments on commit 4c0ace9

@nirvn

This comment has been minimized.

Copy link
Contributor

@nirvn nirvn replied Mar 24, 2017

Also hide on linux please.

@NathanW2

This comment has been minimized.

Copy link
Member Author

@NathanW2 NathanW2 replied Mar 24, 2017

Please sign in to comment.