mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-18 13:16:28 +00:00
Fix restart confirmation box cancel.
This commit is contained in:
parent
616d099c07
commit
bcbd97e515
@ -394,11 +394,12 @@ void SetupInterfaceScale(
|
||||
Local::writeSettings();
|
||||
Core::Restart();
|
||||
});
|
||||
const auto cancelled = crl::guard(button, [=] {
|
||||
const auto cancelled = crl::guard(button, [=](Fn<void()> close) {
|
||||
base::call_delayed(
|
||||
st::defaultSettingsSlider.duration,
|
||||
button,
|
||||
[=] { repeatSetScale(cConfigScale(), repeatSetScale); });
|
||||
close();
|
||||
});
|
||||
window->show(Ui::MakeConfirmBox({
|
||||
.text = tr::lng_settings_need_restart(),
|
||||
|
Loading…
Reference in New Issue
Block a user