mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +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();
|
||||
Restart();
|
||||
};
|
||||
const auto keepDisabled = [=] {
|
||||
const auto keepDisabled = [=](Fn<void()> close) {
|
||||
Ui::GL::ForceDisable(true);
|
||||
Ui::GL::CrashCheckFinish();
|
||||
settings().setDisableOpenGL(true);
|
||||
Local::writeSettings();
|
||||
close();
|
||||
};
|
||||
_lastActivePrimaryWindow->show(Ui::MakeConfirmBox({
|
||||
.text = ""
|
||||
|
|
Loading…
Add table
Reference in a new issue