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