and now fix crash if GUI cannot be initialized

This commit is contained in:
tildearrow 2021-12-30 17:30:31 -05:00
parent 8cd54ebe7b
commit 299ed5d29c
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ int main(int argc, char** argv) {
#ifdef HAVE_GUI
g.bindEngine(&e);
g.init();
if (!g.init()) return 1;
g.loop();
logI("closing GUI.\n");