mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +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();
|
||||
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(),
|
||||
|
|
Loading…
Add table
Reference in a new issue