mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 04:57:44 +00:00
Add nogui option
This commit is contained in:
parent
9bd6e9c977
commit
eaacd3303a
1 changed files with 8 additions and 2 deletions
|
@ -22,10 +22,16 @@ int main(int argc, char* argv[]) {
|
||||||
parser.setApplicationDescription("Cross-platform FFXIV Launcher");
|
parser.setApplicationDescription("Cross-platform FFXIV Launcher");
|
||||||
parser.addHelpOption();
|
parser.addHelpOption();
|
||||||
parser.addVersionOption();
|
parser.addVersionOption();
|
||||||
|
|
||||||
|
QCommandLineOption noguiOption("nogui", "Don't open a main window.");
|
||||||
|
parser.addOption(noguiOption);
|
||||||
|
|
||||||
parser.process(app);
|
parser.process(app);
|
||||||
|
|
||||||
|
if(!parser.isSet(noguiOption)) {
|
||||||
LauncherWindow w(c);
|
LauncherWindow w(c);
|
||||||
w.show();
|
w.show();
|
||||||
|
}
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue