StudioWelcome: Disable welcome page if inactive

Change-Id: Id098579003ef63d2d06bfb1f2afaeca15c3bbc70
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2022-04-28 18:26:33 +02:00
parent 83736649a7
commit 302c2e804c

View File

@@ -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