forked from qt-creator/qt-creator
Only globally suppress "Link with Qt" if explicitly requested
If the user actually links with a Qt installation, the note is not shown again. But if the user installs a different Qt Creator that is not linked, it should be shown again. After the user presses "Do not show again", it really will never be shown again. Fixes: QTCREATORBUG-25502 Change-Id: Ic3b6f46c318e4b8aa6b189e712b01f2c3d4a2b1d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -123,7 +123,6 @@ static void askAboutQtInstallation()
|
|||||||
Utils::InfoBarEntry::GlobalSuppression::Enabled);
|
Utils::InfoBarEntry::GlobalSuppression::Enabled);
|
||||||
info.setCustomButtonInfo(QtSupportPlugin::tr("Link with Qt"), [] {
|
info.setCustomButtonInfo(QtSupportPlugin::tr("Link with Qt"), [] {
|
||||||
ICore::infoBar()->removeInfo(kLinkWithQtInstallationSetting);
|
ICore::infoBar()->removeInfo(kLinkWithQtInstallationSetting);
|
||||||
ICore::infoBar()->globallySuppressInfo(kLinkWithQtInstallationSetting);
|
|
||||||
QTimer::singleShot(0, ICore::dialogParent(), &QtOptionsPage::linkWithQt);
|
QTimer::singleShot(0, ICore::dialogParent(), &QtOptionsPage::linkWithQt);
|
||||||
});
|
});
|
||||||
ICore::infoBar()->addInfo(info);
|
ICore::infoBar()->addInfo(info);
|
||||||
|
|||||||
Reference in New Issue
Block a user