From 77d5999a339cd0e3c264cb6dcb4117e325c4a2f4 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 28 Apr 2022 18:26:33 +0200 Subject: StudioWelcome: Disable welcome page if inactive On Windows 11 a side effect of having the welcome page active if up to 10% CPU load (one core) in the GUI thread if the user interacts with the GUI. If idle QDS takes 0%, but just clicking at menus can take up to 10% CPU, if the welcome page is active. See QTBUG-102549 and QDS-6750 for profiling data. This seems to be related to accessibility. Change-Id: Id098579003ef63d2d06bfb1f2afaeca15c3bbc70 Reviewed-by: Tim Jenssen --- src/plugins/studiowelcome/studiowelcomeplugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3