fix: app.relaunch loses args when execPath specified (#35253)

fix: app.relaunch loses args when execPath specified (#35108)

Co-authored-by: Aaron Meriwether <me@ameriwether.com>
This commit is contained in:
trop[bot]
2022-08-09 08:55:23 +09:00
committed by GitHub
parent e6fc453d90
commit 09beb48648
3 changed files with 15 additions and 7 deletions

View File

@@ -1152,7 +1152,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;
}