StudioWelcome: Disable the mode bar once on first start

This ensures that users who explcily enabled the mode bar,
still get a hidden mode bar, unless they explicitly enable it
again.

Change-Id: I491dc1809b4cffa2637919c1c4ac35cef1e27ccc
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2023-02-16 18:54:29 +01:00
parent 440bfbfd90
commit cabf16c521

View File

@@ -532,6 +532,7 @@ void StudioWelcomePlugin::extensionsInitialized()
if (showSplashScreen()) { if (showSplashScreen()) {
connect(Core::ICore::instance(), &Core::ICore::coreOpened, this, [this] { connect(Core::ICore::instance(), &Core::ICore::coreOpened, this, [this] {
Core::ModeManager::setModeStyle(Core::ModeManager::Style::Hidden);
if (Utils::HostOsInfo::isMacHost()) { if (Utils::HostOsInfo::isMacHost()) {
s_viewWindow = new QQuickView(Core::ICore::mainWindow()->windowHandle()); s_viewWindow = new QQuickView(Core::ICore::mainWindow()->windowHandle());