mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-19 16:46:55 +00:00
GODT-2253: Restart Launcher from the gui when GUI crashes.
This commit is contained in:
@ -98,6 +98,7 @@ CommandLineOptions parseCommandLine(int argc, char *argv[]) {
|
||||
// we can't use QCommandLineParser here since it will fail on unknown options.
|
||||
// Arguments may contain some bridge flags.
|
||||
if (arg == softwareRendererFlag) {
|
||||
options.bridgeGuiArgs.append(arg);
|
||||
options.useSoftwareRenderer = true;
|
||||
}
|
||||
if (arg == noWindowFlag) {
|
||||
@ -113,10 +114,12 @@ CommandLineOptions parseCommandLine(int argc, char *argv[]) {
|
||||
else if (arg == "--attach" || arg == "-a") {
|
||||
// we don't keep the attach mode within the args since we don't need it for Bridge.
|
||||
options.attach = true;
|
||||
options.bridgeGuiArgs.append(arg);
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
options.bridgeArgs.append(arg);
|
||||
options.bridgeGuiArgs.append(arg);
|
||||
}
|
||||
}
|
||||
if (!flagFound) {
|
||||
|
||||
Reference in New Issue
Block a user