fix: restore wasOpenedAtLogin
functionality (#42422)
fix: restore opened at login functionality Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
8035effa1a
commit
9ab67cc2f6
4 changed files with 16 additions and 1 deletions
|
@ -392,6 +392,7 @@ v8::Local<v8::Value> Browser::GetLoginItemSettings(
|
|||
platform_util::GetLoginItemEnabled(options.type, options.service_name);
|
||||
settings.open_at_login =
|
||||
status == "enabled" || status == "enabled-deprecated";
|
||||
settings.opened_at_login = was_launched_at_login_;
|
||||
if (@available(macOS 13, *))
|
||||
settings.status = status;
|
||||
#else
|
||||
|
@ -405,6 +406,7 @@ v8::Local<v8::Value> Browser::GetLoginItemSettings(
|
|||
settings = settings_deprecated;
|
||||
} else {
|
||||
settings.open_at_login = status == "enabled";
|
||||
settings.opened_at_login = was_launched_at_login_;
|
||||
settings.status = status;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue