Close restarting confirm box when cancelled

The regression seems introduced in commit 5718789d53.
This commit is contained in:
Nicholas Guriev 2022-04-09 09:39:23 +03:00 committed by John Preston
parent fd6d09caaa
commit e99e35a12a

View File

@ -697,8 +697,9 @@ void SetupOpenGL(
Local::writeSettings();
Core::Restart();
});
const auto cancelled = crl::guard(button, [=] {
const auto cancelled = crl::guard(button, [=](Fn<void()> close) {
toggles->fire(!enabled);
close();
});
controller->show(Ui::MakeConfirmBox({
.text = tr::lng_settings_need_restart(),