mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix changing ANGLE backend in Settings.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user