Skip to content

Build your personal knowledge base with Trilium Notes

feat(settings): refresh window when toggling background effects

Elian Dorana6f29bfbf3d5
diff --git a/src/public/app/widgets/type_widgets/options/appearance/electron_integration.js b/src/public/app/widgets/type_widgets/options/appearance/electron_integration.js
index 37611e5bb4..27e750303f 100644
--- a/src/public/app/widgets/type_widgets/options/appearance/electron_integration.js
+++ b/src/public/app/widgets/type_widgets/options/appearance/electron_integration.js
@@ -37,7 +37,10 @@ export default class ElectronIntegrationOptions extends OptionsWidget {
});
this.$backgroundEffects = this.$widget.find("input.background-effects");
- this.$backgroundEffects.on("change", () => this.updateCheckboxOption("backgroundEffects", this.$backgroundEffects));
+ this.$backgroundEffects.on("change", async () => {
+ await this.updateCheckboxOption("backgroundEffects", this.$backgroundEffects);
+ utils.reloadFrontendApp("background effect change");
+ });
}
isEnabled() {