From 69dd53ffe6edbd10e4589981563a2b6c44ec591a Mon Sep 17 00:00:00 2001 From: Elias Papavasileiou Date: Wed, 26 Feb 2020 01:23:18 +0200 Subject: [PATCH] Change minimizeOnCopyToClipboardKey constant reference and fix whitespace --- src/app/accounts/settings.component.ts | 4 ++-- src/app/vault/vault.component.ts | 4 ++-- src/main/messaging.main.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/accounts/settings.component.ts b/src/app/accounts/settings.component.ts index c215dc0b..76bdd8cc 100644 --- a/src/app/accounts/settings.component.ts +++ b/src/app/accounts/settings.component.ts @@ -122,7 +122,7 @@ export class SettingsComponent implements OnInit { this.theme = await this.storageService.get(ConstantsService.themeKey); this.clearClipboard = await this.storageService.get(ConstantsService.clearClipboardKey); this.minimizeOnCopyToClipboard = - await this.storageService.get(ConstantsService.minimizeOnCopyToClipboardKey); + await this.storageService.get(ElectronConstants.minimizeOnCopyToClipboardKey); } async saveLockOption() { @@ -228,7 +228,7 @@ export class SettingsComponent implements OnInit { } async saveMinOnCopyToClipboard() { - await this.storageService.save(ConstantsService.minimizeOnCopyToClipboardKey, this.minimizeOnCopyToClipboard); + await this.storageService.save(ElectronConstants.minimizeOnCopyToClipboardKey, this.minimizeOnCopyToClipboard); this.callAnalytics('MinOnCopyToClipboard', this.minimizeOnCopyToClipboard); } diff --git a/src/app/vault/vault.component.ts b/src/app/vault/vault.component.ts index f2ba9001..e9808488 100644 --- a/src/app/vault/vault.component.ts +++ b/src/app/vault/vault.component.ts @@ -47,7 +47,7 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { StorageService } from 'jslib/abstractions/storage.service'; import { SyncService } from 'jslib/abstractions/sync.service'; -import { ConstantsService } from 'jslib/services/constants.service'; +import { ElectronConstants } from 'jslib/electron/electronConstants'; const SyncInterval = 6 * 60 * 60 * 1000; // 6 hours const BroadcasterSubscriptionId = 'VaultComponent'; @@ -671,7 +671,7 @@ export class VaultComponent implements OnInit, OnDestroy { private async minimizeIfNeeded(): Promise { const shouldMinimize = - await this.storageService.get(ConstantsService.minimizeOnCopyToClipboardKey); + await this.storageService.get(ElectronConstants.minimizeOnCopyToClipboardKey); if (shouldMinimize) { this.messagingService.send('minimize'); } diff --git a/src/main/messaging.main.ts b/src/main/messaging.main.ts index a776b054..cc9781a5 100644 --- a/src/main/messaging.main.ts +++ b/src/main/messaging.main.ts @@ -25,7 +25,7 @@ export class MessagingMain { break; case 'minimize': if (this.main.windowMain.win != null) { - this.main.windowMain.win.minimize(); + this.main.windowMain.win.minimize(); } break; case 'showTray':