From 22ddd8db60b4073f9e9165db68ac45a468d67849 Mon Sep 17 00:00:00 2001 From: Hinton Date: Wed, 16 Dec 2020 09:38:28 +0100 Subject: [PATCH] Ensure settings are saved --- src/app/accounts/settings.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/accounts/settings.component.ts b/src/app/accounts/settings.component.ts index eb0b8b259d..2abab4b10d 100644 --- a/src/app/accounts/settings.component.ts +++ b/src/app/accounts/settings.component.ts @@ -275,6 +275,7 @@ export class SettingsComponent implements OnInit { async saveCloseToTray() { if (this.requireEnableTray) { this.enableTray = true; + await this.storageService.save(ElectronConstants.enableTrayKey, this.enableTray); } await this.storageService.save(ElectronConstants.enableCloseToTrayKey, this.enableCloseToTray); @@ -289,7 +290,9 @@ export class SettingsComponent implements OnInit { if (confirm) { this.startToTray = false; + await this.storageService.save(ElectronConstants.enableStartToTrayKey, this.startToTray); this.enableCloseToTray = false; + await this.storageService.save(ElectronConstants.enableCloseToTrayKey, this.enableCloseToTray); } else { this.enableTray = true; } @@ -305,6 +308,7 @@ export class SettingsComponent implements OnInit { async saveStartToTray() { if (this.requireEnableTray) { this.enableTray = true; + await this.storageService.save(ElectronConstants.enableTrayKey, this.enableTray); } await this.storageService.save(ElectronConstants.enableStartToTrayKey, this.startToTray);