1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-31 08:43:54 +00:00

Referenced ipc.platform.

This commit is contained in:
Todd Martin
2026-01-03 15:12:19 -05:00
parent de8270b59e
commit e4f732c5ac
2 changed files with 1 additions and 3 deletions

View File

@@ -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

View File

@@ -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;
}