forked from qt-creator/qt-creator
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:
@@ -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());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user