Skip to content

Build your personal knowledge base with Trilium Notes

feat(options/spellcheck): add button to reload app

Elian Doranac35730e3bda
diff --git a/apps/client/src/widgets/type_widgets/options/spellcheck.tsx b/apps/client/src/widgets/type_widgets/options/spellcheck.tsx
index 7e919a6500..fe5bca5bf5 100644
--- a/apps/client/src/widgets/type_widgets/options/spellcheck.tsx
+++ b/apps/client/src/widgets/type_widgets/options/spellcheck.tsx
@@ -2,7 +2,7 @@ import { useCallback, useMemo } from "preact/hooks";
import appContext from "../../../components/app_context";
import { t } from "../../../services/i18n";
-import { dynamicRequire, isElectron } from "../../../services/utils";
+import { dynamicRequire, isElectron, restartDesktopApp } from "../../../services/utils";
import Button from "../../react/Button";
import FormText from "../../react/FormText";
import FormToggle from "../../react/FormToggle";
@@ -38,6 +38,15 @@ function ElectronSpellcheckSettings() {
onChange={setSpellCheckEnabled}
/>
</OptionsRow>
+
+ <OptionsRow name="restart" centered>
+ <Button
+ name="restart-app-button"
+ text={t("electron_integration.restart-app-button")}
+ size="micro"
+ onClick={restartDesktopApp}
+ />
+ </OptionsRow>
</OptionsSection>
{spellCheckEnabled && <SpellcheckLanguages />}