mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-23 23:56:13 +00:00
Close restarting confirm box when cancelled
The regression seems introduced in commit 5718789d53
.
This commit is contained in:
parent
fd6d09caaa
commit
e99e35a12a
@ -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…
Reference in New Issue
Block a user