From 05122cc07ddff36210ecd9abda96b91453effd71 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 11 Nov 2021 15:03:49 +0100 Subject: [PATCH] QmlProject: Do not allow to dismiss info bar for ui.qml files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the info bar is dismissed ('Do Not Show Again') it will never appear again. Since .ui.qml files are supposed to be opened in QDS we do not want this to happen. Task-number: QTCREATORBUG-26567 Change-Id: I236de493988c3634b56c0ac6b543f21f0bcfbec8 Reviewed-by: Kimmo Leppälä Reviewed-by: Thomas Hartmann Reviewed-by: Qt CI Bot --- src/plugins/qmlprojectmanager/qmlprojectplugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp index c2fd4b45763..1faf0ccbaab 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp @@ -199,7 +199,7 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage) info(openInQDSAppSetting, description + tr(" Learn more about Qt Design Studio here: ") + "Qt Design Studio", - Utils::InfoBarEntry::GlobalSuppression::Enabled); + Utils::InfoBarEntry::GlobalSuppression::Disabled); Core::ICore::infoBar()->addInfo(info); } return; @@ -209,7 +209,7 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage) Utils::InfoBarEntry info(openInQDSAppSetting, description + "\n" + tr("Do you want to open this file in Qt Design Studio?"), - Utils::InfoBarEntry::GlobalSuppression::Enabled); + Utils::InfoBarEntry::GlobalSuppression::Disabled); info.setCustomButtonInfo(tr("Open in Qt Design Studio"), [filePath] { Core::ICore::infoBar()->removeInfo(openInQDSAppSetting);