Explorar o código

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

Vanessa %!s(int64=2) %!d(string=hai) anos
pai
achega
211f97b67b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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) {
         if (localFontStyles.length > 8) {
             localFontStyles.splice(7, 1);
             localFontStyles.splice(7, 1);
         }
         }
+        window.siyuan.storage[Constants.LOCAL_FONTSTYLES] = localFontStyles;
         setStorageVal(Constants.LOCAL_FONTSTYLES, window.siyuan.storage[Constants.LOCAL_FONTSTYLES]);
         setStorageVal(Constants.LOCAL_FONTSTYLES, window.siyuan.storage[Constants.LOCAL_FONTSTYLES]);
     } else {
     } else {
         if (localFontStyles.length === 0) {
         if (localFontStyles.length === 0) {