mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Close restarting confirm box when cancelled
The regression seems introduced in commit 5718789d53
.
This commit is contained in:
parent
fd6d09caaa
commit
e99e35a12a
1 changed files with 2 additions and 1 deletions
|
@ -697,8 +697,9 @@ void SetupOpenGL(
|
||||||
Local::writeSettings();
|
Local::writeSettings();
|
||||||
Core::Restart();
|
Core::Restart();
|
||||||
});
|
});
|
||||||
const auto cancelled = crl::guard(button, [=] {
|
const auto cancelled = crl::guard(button, [=](Fn<void()> close) {
|
||||||
toggles->fire(!enabled);
|
toggles->fire(!enabled);
|
||||||
|
close();
|
||||||
});
|
});
|
||||||
controller->show(Ui::MakeConfirmBox({
|
controller->show(Ui::MakeConfirmBox({
|
||||||
.text = tr::lng_settings_need_restart(),
|
.text = tr::lng_settings_need_restart(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue