UI: Refactor OBSInit call
This commit is contained in:
parent
7187c1b6d4
commit
2de89bee8c
@ -877,7 +877,10 @@ static int run_program(fstream &logFile, int argc, char *argv[])
|
||||
|
||||
program.installTranslator(&translator);
|
||||
|
||||
ret = program.OBSInit() ? program.exec() : 0;
|
||||
if (!program.OBSInit())
|
||||
return 0;
|
||||
|
||||
return program.exec();
|
||||
|
||||
} catch (const char *error) {
|
||||
blog(LOG_ERROR, "%s", error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user