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