mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Ensure settings are saved
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user