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:
@@ -206,7 +206,7 @@ void UpdateInfoPlugin::checkForUpdatesFinished()
|
||||
d->m_progress->setKeepOnFinish(FutureProgress::HideOnFinish);
|
||||
emit newUpdatesAvailable(true);
|
||||
Utils::InfoBarEntry info(InstallUpdates, tr("New updates are available. Start the update?"));
|
||||
info.setCustomButtonInfo(tr("Start Update"), [this] {
|
||||
info.addCustomButton(tr("Start Update"), [this] {
|
||||
Core::ICore::infoBar()->removeInfo(InstallUpdates);
|
||||
startUpdater();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user