A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix markdown shortcuts toggle reset on app restart (#6555)
Muhammad Ali171f28f7c04d
diff --git a/apps/web/src/stores/setting-store.ts b/apps/web/src/stores/setting-store.tsindex ff086c9dd..b9687ffdb 100644--- a/apps/web/src/stores/setting-store.ts+++ b/apps/web/src/stores/setting-store.ts@@ -169,10 +169,11 @@ class SettingStore extends BaseStore<SettingStore> {};toggleMarkdownShortcuts = (toggleState?: boolean) => {+ const markdownShortcuts = this.get().markdownShortcuts;this.set((state) => {state.markdownShortcuts = toggleState ?? !state.markdownShortcuts;- Config.set("markdownShortcuts", state.markdownShortcuts);});+ Config.set("markdownShortcuts", !markdownShortcuts);};togglePrivacyMode = async () => {