mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Add parent-window option (#2089)
This commit is contained in:
parent
acec41685e
commit
444810d3dc
1 changed files with 6 additions and 1 deletions
|
@ -18,11 +18,16 @@ Args::Args(const QApplication &app)
|
||||||
|
|
||||||
// Used internally by app to restart after unexpected crashes
|
// Used internally by app to restart after unexpected crashes
|
||||||
QCommandLineOption crashRecoveryOption("crash-recovery");
|
QCommandLineOption crashRecoveryOption("crash-recovery");
|
||||||
crashRecoveryOption.setHidden(true);
|
crashRecoveryOption.setFlags(QCommandLineOption::HiddenFromHelp);
|
||||||
|
|
||||||
|
// Added to ignore the parent-window option passed during native messaging
|
||||||
|
QCommandLineOption parentWindowOption("parent-window");
|
||||||
|
parentWindowOption.setFlags(QCommandLineOption::HiddenFromHelp);
|
||||||
|
|
||||||
parser.addOptions({
|
parser.addOptions({
|
||||||
{{"v", "version"}, "Displays version information."},
|
{{"v", "version"}, "Displays version information."},
|
||||||
crashRecoveryOption,
|
crashRecoveryOption,
|
||||||
|
parentWindowOption,
|
||||||
});
|
});
|
||||||
parser.addOption(QCommandLineOption(
|
parser.addOption(QCommandLineOption(
|
||||||
{"c", "channels"},
|
{"c", "channels"},
|
||||||
|
|
Loading…
Reference in a new issue