diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-04-28 18:26:33 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-05-09 14:37:32 +0000 |
commit | 302c2e804c0a0a616c17858dc2560c7797bdc689 (patch) | |
tree | f30957b11becb0d7b51cc7f3066d7e99f028944a | |
parent | 83736649a7196667f68931e70c27dde830d43b8c (diff) |
StudioWelcome: Disable welcome page if inactive
Change-Id: Id098579003ef63d2d06bfb1f2afaeca15c3bbc70
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r-- | src/plugins/studiowelcome/studiowelcomeplugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp index 8c93382973..0637f04ef7 100644 --- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp +++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp @@ -671,6 +671,11 @@ WelcomeMode::WelcomeMode() m_modeWidget->engine()->setOutputWarningsToStandardError(false); + connect(Core::ModeManager::instance(), &Core::ModeManager::currentModeChanged, this, [this](Utils::Id mode){ + bool active = (mode == Core::Constants::MODE_WELCOME); + m_modeWidget->rootObject()->setProperty("active", active); + }); + if (!useNewWelcomePage()) { #ifdef QT_DEBUG |