fix: app.relaunch loses args when execPath specified (#35108)
This commit is contained in:
parent
34b985c556
commit
91f9436ad8
3 changed files with 15 additions and 7 deletions
|
@ -1151,7 +1151,9 @@ bool App::Relaunch(gin::Arguments* js_args) {
|
|||
|
||||
gin_helper::Dictionary options;
|
||||
if (js_args->GetNext(&options)) {
|
||||
if (options.Get("execPath", &exec_path) || options.Get("args", &args))
|
||||
bool has_exec_path = options.Get("execPath", &exec_path);
|
||||
bool has_args = options.Get("args", &args);
|
||||
if (has_exec_path || has_args)
|
||||
override_argv = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue