Forráskód Böngészése

:bug: fix https://github.com/siyuan-note/siyuan/issues/6970

Vanessa 2 éve
szülő
commit
211f97b67b
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      app/src/protyle/toolbar/Font.ts

+ 1 - 0
app/src/protyle/toolbar/Font.ts

@@ -143,6 +143,7 @@ export const fontEvent = (protyle: IProtyle, type?: string, color?: string) => {
         if (localFontStyles.length > 8) {
             localFontStyles.splice(7, 1);
         }
+        window.siyuan.storage[Constants.LOCAL_FONTSTYLES] = localFontStyles;
         setStorageVal(Constants.LOCAL_FONTSTYLES, window.siyuan.storage[Constants.LOCAL_FONTSTYLES]);
     } else {
         if (localFontStyles.length === 0) {