mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix "Keep Disabled" in OpenGL crash check.
This commit is contained in:
parent
2b960a1f21
commit
4337f0b509
1 changed files with 2 additions and 1 deletions
|
@ -428,11 +428,12 @@ void Application::showOpenGLCrashNotification() {
|
||||||
Local::writeSettings();
|
Local::writeSettings();
|
||||||
Restart();
|
Restart();
|
||||||
};
|
};
|
||||||
const auto keepDisabled = [=] {
|
const auto keepDisabled = [=](Fn<void()> close) {
|
||||||
Ui::GL::ForceDisable(true);
|
Ui::GL::ForceDisable(true);
|
||||||
Ui::GL::CrashCheckFinish();
|
Ui::GL::CrashCheckFinish();
|
||||||
settings().setDisableOpenGL(true);
|
settings().setDisableOpenGL(true);
|
||||||
Local::writeSettings();
|
Local::writeSettings();
|
||||||
|
close();
|
||||||
};
|
};
|
||||||
_lastActivePrimaryWindow->show(Ui::MakeConfirmBox({
|
_lastActivePrimaryWindow->show(Ui::MakeConfirmBox({
|
||||||
.text = ""
|
.text = ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue