mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Add define to disable the crash dialog
This commit is contained in:
parent
e23ce31e05
commit
7e5a182d50
1 changed files with 2 additions and 0 deletions
|
@ -82,8 +82,10 @@ int runGui(int argc, char *argv[])
|
||||||
auto runningPath = pathMan.settingsFolderPath + "/running_" + pathMan.appPathHash;
|
auto runningPath = pathMan.settingsFolderPath + "/running_" + pathMan.appPathHash;
|
||||||
|
|
||||||
if (QFile::exists(runningPath)) {
|
if (QFile::exists(runningPath)) {
|
||||||
|
#ifndef DISABLE_CRASH_DIALOG
|
||||||
chatterino::widgets::LastRunCrashDialog dialog;
|
chatterino::widgets::LastRunCrashDialog dialog;
|
||||||
dialog.exec();
|
dialog.exec();
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
QFile runningFile(runningPath);
|
QFile runningFile(runningPath);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue