aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2022-04-28 18:26:33 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2022-05-09 14:37:32 +0000
commit302c2e804c0a0a616c17858dc2560c7797bdc689 (patch)
treef30957b11becb0d7b51cc7f3066d7e99f028944a
parent83736649a7196667f68931e70c27dde830d43b8c (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.cpp5
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