StudioWelcome: Only replace wizards when running as Design Studio

Task-number: QTCREATORBUG-26936
Change-Id: I11c14bd916a7139fc4d133b8b3b8a79fa7770409
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Eike Ziller
2022-01-27 10:09:46 +01:00
parent a117a558fe
commit a89f6919d2

View File

@@ -581,6 +581,7 @@ void StudioWelcomePlugin::extensionsInitialized()
Core::ModeManager::activateMode(m_welcomeMode->id()); Core::ModeManager::activateMode(m_welcomeMode->id());
// Enable QDS new project dialog // Enable QDS new project dialog
if (Core::ICore::settings()->value("QML/Designer/StandAloneMode", false).toBool())
Core::ICore::setNewDialogFactory([](QWidget *parent) { return new QdsNewDialog(parent); }); Core::ICore::setNewDialogFactory([](QWidget *parent) { return new QdsNewDialog(parent); });
if (showSplashScreen()) { if (showSplashScreen()) {