mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix fallback to system tray based notifications
This commit is contained in:
parent
43d3870978
commit
1eee88593b
@ -704,13 +704,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
|
||||
}
|
||||
endProfile();
|
||||
|
||||
if ( !( QgsGui::nativePlatformInterface()->capabilities() & QgsNative::NativeDesktopNotifications ) )
|
||||
{
|
||||
mTray = new QSystemTrayIcon();
|
||||
mTray->setIcon( QIcon( QgsApplication::appIconPath() ) );
|
||||
mTray->hide();
|
||||
}
|
||||
|
||||
// Create the themes folder for the user
|
||||
startProfile( QStringLiteral( "Creating theme folder" ) );
|
||||
QgsApplication::createThemeFolder();
|
||||
@ -1322,6 +1315,13 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
|
||||
QgsGui::instance()->nativePlatformInterface()->hideApplicationProgress();
|
||||
} );
|
||||
|
||||
if ( !( QgsGui::nativePlatformInterface()->capabilities() & QgsNative::NativeDesktopNotifications ) )
|
||||
{
|
||||
mTray = new QSystemTrayIcon();
|
||||
mTray->setIcon( QIcon( QgsApplication::appIconPath() ) );
|
||||
mTray->hide();
|
||||
}
|
||||
|
||||
// supposedly all actions have been added, now register them to the shortcut manager
|
||||
QgsGui::shortcutsManager()->registerAllChildren( this );
|
||||
QgsGui::shortcutsManager()->registerAllChildren( mSnappingWidget );
|
||||
|
Loading…
x
Reference in New Issue
Block a user