mirror of
https://github.com/bitwarden/browser
synced 2026-01-31 08:43:54 +00:00
Referenced ipc.platform.
This commit is contained in:
@@ -245,7 +245,6 @@ export class SettingsComponent implements OnInit, OnDestroy {
|
||||
this.startToTrayDescText = this.i18nService.t(startToTrayKey + "Desc");
|
||||
|
||||
// Only show the auto-start setting if it's supported on this platform.
|
||||
// Windows Store apps and Snap packages don't support user-configurable auto-start.
|
||||
this.showOpenAtLoginOption = this.desktopSettingsService.shouldDisplayAutoStartSetting();
|
||||
|
||||
// DuckDuckGo browser is only for macos initially
|
||||
|
||||
@@ -19,7 +19,6 @@ import {
|
||||
import { UserId } from "@bitwarden/common/types/guid";
|
||||
|
||||
import { SshAgentPromptType } from "../../autofill/models/ssh-agent-setting";
|
||||
import { isSnapStore, isWindowsStore } from "../../utils";
|
||||
import { ModalModeState, WindowState } from "../models/domain/window-state";
|
||||
|
||||
export const HARDWARE_ACCELERATION = new KeyDefinition<boolean>(
|
||||
@@ -366,7 +365,7 @@ export class DesktopSettingsService {
|
||||
shouldDisplayAutoStartSetting(): boolean {
|
||||
// Windows Store apps don't support auto-start functionality.
|
||||
// On Snap, auto-start is managed by the snap configuration (electron-builder.json).
|
||||
if (isWindowsStore() || isSnapStore()) {
|
||||
if (ipc.platform.isWindowsStore || ipc.platform.isSnapStore) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user