From ab81767b46b3698b47a5b6ce49a316c6f3429011 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 18 Mar 2025 18:21:25 +0100 Subject: [PATCH] QmlDesigner: Indicate PROJECTSTORAGE status in the window title Temporarily append "(PROJECTSTORAGE)" to the window title to help testers identify whether the feature is enabled. This is necessary because PROJECTSTORAGE is toggled on and off between snapshots to allow developers time to address issues. Change-Id: I993bb7f35fac37397441f807be70b877ccddbe8c Reviewed-by: Marco Bubke --- src/plugins/qmldesigner/qmldesignerplugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/qmldesigner/qmldesignerplugin.cpp b/src/plugins/qmldesigner/qmldesignerplugin.cpp index e0ab88fc453..f1a15091036 100644 --- a/src/plugins/qmldesigner/qmldesignerplugin.cpp +++ b/src/plugins/qmldesigner/qmldesignerplugin.cpp @@ -260,6 +260,11 @@ QmlDesignerPlugin::~QmlDesignerPlugin() //////////////////////////////////////////////////// bool QmlDesignerPlugin::initialize(const QStringList & /*arguments*/, QString * /*errorMessage*/) { +#ifdef QDS_USE_PROJECTSTORAGE + auto specialSnapshotName = QGuiApplication::applicationDisplayName() + "(PROJECTSTORAGE)"; + QGuiApplication::setApplicationDisplayName(specialSnapshotName); +#endif + if constexpr (isUsingQmlDesignerLite()) { if (!QmlDesignerBasePlugin::isLiteModeEnabled()) { QMessageBox::warning(Core::ICore::dialogParent(), @@ -642,6 +647,7 @@ void QmlDesignerPlugin::enforceDelayedInitialize() return (p / postfix).toFSPathString(); }); + #ifndef QDS_USE_PROJECTSTORAGE MetaInfo::initializeGlobal(pluginPaths, d->externalDependencies); #endif