forked from qt-creator/qt-creator
InfoBar: Make adding more buttons possible
Change-Id: Ic0c946cf3f87fe46cd06391f38e0bc71374ad340 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -308,7 +308,7 @@ IVersionControl* VcsManager::findVersionControlForDirectory(const FilePath &inpu
|
||||
.arg(versionControl->displayName()),
|
||||
Utils::InfoBarEntry::GlobalSuppression::Enabled);
|
||||
d->m_unconfiguredVcs = versionControl;
|
||||
info.setCustomButtonInfo(ICore::msgShowOptionsDialog(), []() {
|
||||
info.addCustomButton(ICore::msgShowOptionsDialog(), []() {
|
||||
QTC_ASSERT(d->m_unconfiguredVcs, return);
|
||||
ICore::showOptionsDialog(d->m_unconfiguredVcs->id());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user