mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-17 01:31:25 +01:00
Ensure settings are saved
This commit is contained in:
parent
41e72b22b8
commit
22ddd8db60
@ -275,6 +275,7 @@ export class SettingsComponent implements OnInit {
|
|||||||
async saveCloseToTray() {
|
async saveCloseToTray() {
|
||||||
if (this.requireEnableTray) {
|
if (this.requireEnableTray) {
|
||||||
this.enableTray = true;
|
this.enableTray = true;
|
||||||
|
await this.storageService.save(ElectronConstants.enableTrayKey, this.enableTray);
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.storageService.save(ElectronConstants.enableCloseToTrayKey, this.enableCloseToTray);
|
await this.storageService.save(ElectronConstants.enableCloseToTrayKey, this.enableCloseToTray);
|
||||||
@ -289,7 +290,9 @@ export class SettingsComponent implements OnInit {
|
|||||||
|
|
||||||
if (confirm) {
|
if (confirm) {
|
||||||
this.startToTray = false;
|
this.startToTray = false;
|
||||||
|
await this.storageService.save(ElectronConstants.enableStartToTrayKey, this.startToTray);
|
||||||
this.enableCloseToTray = false;
|
this.enableCloseToTray = false;
|
||||||
|
await this.storageService.save(ElectronConstants.enableCloseToTrayKey, this.enableCloseToTray);
|
||||||
} else {
|
} else {
|
||||||
this.enableTray = true;
|
this.enableTray = true;
|
||||||
}
|
}
|
||||||
@ -305,6 +308,7 @@ export class SettingsComponent implements OnInit {
|
|||||||
async saveStartToTray() {
|
async saveStartToTray() {
|
||||||
if (this.requireEnableTray) {
|
if (this.requireEnableTray) {
|
||||||
this.enableTray = true;
|
this.enableTray = true;
|
||||||
|
await this.storageService.save(ElectronConstants.enableTrayKey, this.enableTray);
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.storageService.save(ElectronConstants.enableStartToTrayKey, this.startToTray);
|
await this.storageService.save(ElectronConstants.enableStartToTrayKey, this.startToTray);
|
||||||
|
Loading…
Reference in New Issue
Block a user