Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.jsindex 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() {