Vanessa 2 yıl önce
ebeveyn
işleme
620ed9c13a
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      app/src/protyle/breadcrumb/index.ts

+ 3 - 1
app/src/protyle/breadcrumb/index.ts

@@ -261,7 +261,9 @@ export class Breadcrumb {
                     }
                     }
                 }).element);
                 }).element);
             }
             }
-            window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
+            if (window.siyuan.menus.menu.element.childElementCount > 0) {
+                window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
+            }
             window.siyuan.menus.menu.append(new MenuItem({
             window.siyuan.menus.menu.append(new MenuItem({
                 icon: "iconRefresh",
                 icon: "iconRefresh",
                 accelerator: window.siyuan.config.keymap.editor.general.refresh.custom,
                 accelerator: window.siyuan.config.keymap.editor.general.refresh.custom,