diff --git a/src/ui/fortsettings.cpp b/src/ui/fortsettings.cpp index dd7c6d2e..89ff760f 100644 --- a/src/ui/fortsettings.cpp +++ b/src/ui/fortsettings.cpp @@ -165,6 +165,9 @@ void FortSettings::processArguments(const QStringList &args) const QCommandLineOption noCacheOption("no-cache", "Don't use cache on disk."); parser.addOption(noCacheOption); + const QCommandLineOption noSplashOption("no-splash", "Don't show Splash screen on startup."); + parser.addOption(noSplashOption); + const QCommandLineOption langOption("lang", "Default language.", "lang", "en"); parser.addOption(langOption); @@ -186,6 +189,11 @@ void FortSettings::processArguments(const QStringList &args) m_noCache = true; } + // No Splash + if (parser.isSet(noSplashOption)) { + m_noSplash = true; + } + // Default Language if (parser.isSet(langOption)) { m_defaultLanguage = parser.value(langOption); diff --git a/src/ui/fortsettings.h b/src/ui/fortsettings.h index d26b0032..6ba36bed 100644 --- a/src/ui/fortsettings.h +++ b/src/ui/fortsettings.h @@ -28,6 +28,7 @@ public: bool isDefaultProfilePath() const { return m_isDefaultProfilePath; } bool noCache() const { return m_noCache; } + bool noSplash() const { return m_noSplash; } bool canInstallDriver() const { return m_canInstallDriver; } bool isService() const { return m_isService; } @@ -107,6 +108,7 @@ private: private: uint m_isDefaultProfilePath : 1 = false; uint m_noCache : 1 = false; + uint m_noSplash : 1 = false; uint m_canInstallDriver : 1 = false; uint m_isService : 1 = false; uint m_hasService : 1 = false; diff --git a/src/ui/manager/windowmanager.cpp b/src/ui/manager/windowmanager.cpp index 16dae287..60ad8769 100644 --- a/src/ui/manager/windowmanager.cpp +++ b/src/ui/manager/windowmanager.cpp @@ -80,7 +80,7 @@ void WindowManager::initialize() setupTrayIcon(); - if (ini.splashWindowVisible()) { + if (ini.splashWindowVisible() && !IoC()->noSplash()) { showSplashScreen(); }