diff --git a/Telegram/SourceFiles/settings/settings_main.cpp b/Telegram/SourceFiles/settings/settings_main.cpp index f766bb3457..4284de9255 100644 --- a/Telegram/SourceFiles/settings/settings_main.cpp +++ b/Telegram/SourceFiles/settings/settings_main.cpp @@ -394,11 +394,12 @@ void SetupInterfaceScale( Local::writeSettings(); Core::Restart(); }); - const auto cancelled = crl::guard(button, [=] { + const auto cancelled = crl::guard(button, [=](Fn close) { base::call_delayed( st::defaultSettingsSlider.duration, button, [=] { repeatSetScale(cConfigScale(), repeatSetScale); }); + close(); }); window->show(Ui::MakeConfirmBox({ .text = tr::lng_settings_need_restart(),