mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 15:35:51 +00:00
Fix "Keep Disabled" in OpenGL crash check.
This commit is contained in:
@@ -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 = ""
|
||||||
|
Reference in New Issue
Block a user