forked from qt-creator/qt-creator
QmlProject: Do not allow to dismiss info bar for ui.qml files
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ä <kimmo.leppala@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -199,7 +199,7 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage)
|
||||
info(openInQDSAppSetting,
|
||||
description + tr(" Learn more about Qt Design Studio here: ")
|
||||
+ "<a href='https://www.qt.io/product/ui-design-tools'>Qt Design Studio</a>",
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user