ide: Disableing Libclang YesNo dialog after the crash only if it is enabled

This commit is contained in:
Mirek Fidler 2022-12-28 13:26:37 +01:00
parent 723c3e716a
commit d88071d4d6

View file

@ -378,7 +378,8 @@ void AppMain___()
}
if(FileExists(crash_file)) {
if(PromptYesNo("TheIDE has crashed the last time it was run. As the possible "
if(LibClangEnabled &&
PromptYesNo("TheIDE has crashed the last time it was run. As the possible "
"cause is libclang incompatibility, we are suggesting to disable Assist features for now."))
LibClangEnabled = false;
DeleteFile(crash_file);