Fix changing ANGLE backend in Settings.

This commit is contained in:
John Preston
2026-02-04 14:59:16 +04:00
parent 71158ca331
commit aab3ad6bc0
@@ -673,7 +673,7 @@ void BuildANGLEOption(SectionBuilder &builder) {
if (index == backendIndex) {
return;
}
const auto confirmed = crl::guard(box, [=] {
const auto confirmed = [=] {
const auto nowDisabled = (index == disabled);
if (!nowDisabled) {
Ui::GL::ChangeANGLE([&] {
@@ -692,7 +692,7 @@ void BuildANGLEOption(SectionBuilder &builder) {
Local::writeSettings();
}
Core::Restart();
});
};
controller->show(Ui::MakeConfirmBox({
.text = tr::lng_settings_need_restart(),
.confirmed = confirmed,