From 444810d3dc7af19855d97625a7493ef467e0678a Mon Sep 17 00:00:00 2001 From: Daniel <24928223+dnsge@users.noreply.github.com> Date: Mon, 19 Oct 2020 01:08:02 -0400 Subject: [PATCH] Add parent-window option (#2089) --- src/common/Args.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/Args.cpp b/src/common/Args.cpp index 0c48d52e0..3db1474b3 100644 --- a/src/common/Args.cpp +++ b/src/common/Args.cpp @@ -18,11 +18,16 @@ Args::Args(const QApplication &app) // Used internally by app to restart after unexpected crashes 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({ {{"v", "version"}, "Displays version information."}, crashRecoveryOption, + parentWindowOption, }); parser.addOption(QCommandLineOption( {"c", "channels"},