1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

Change "hide dock" to "always show dock"

This commit is contained in:
Hinton
2020-11-20 15:49:50 +01:00
parent 14181dc34d
commit ae5a5082db
3 changed files with 16 additions and 16 deletions

View File

@@ -51,8 +51,8 @@ export class SettingsComponent implements OnInit {
supportsBiometric: boolean;
biometric: boolean;
biometricText: string;
hideDock: boolean;
showHideDock: boolean = false;
alwaysShowDock: boolean;
showAlwaysShowDock: boolean = false;
constructor(private analytics: Angulartics2, private toasterService: ToasterService,
private i18nService: I18nService, private platformUtilsService: PlatformUtilsService,
@@ -133,8 +133,8 @@ export class SettingsComponent implements OnInit {
this.supportsBiometric = await this.platformUtilsService.supportsBiometric();
this.biometric = await this.vaultTimeoutService.isBiometricLockSet();
this.biometricText = await this.storageService.get<string>(ConstantsService.biometricText);
this.hideDock = await this.storageService.get<boolean>(ElectronConstants.hideDock);
this.showHideDock = this.platformUtilsService.getDevice() === DeviceType.MacOsDesktop;
this.alwaysShowDock = await this.storageService.get<boolean>(ElectronConstants.alwaysShowDock);
this.showAlwaysShowDock = this.platformUtilsService.getDevice() === DeviceType.MacOsDesktop;
}
async saveVaultTimeoutOptions() {
@@ -281,8 +281,8 @@ export class SettingsComponent implements OnInit {
});
}
async saveHideDock() {
await this.storageService.save(ElectronConstants.hideDock, this.hideDock);
async saveAlwaysShowDock() {
await this.storageService.save(ElectronConstants.alwaysShowDock, this.alwaysShowDock);
}
private callAnalytics(name: string, enabled: boolean) {