瀏覽代碼

:art: fix https://github.com/siyuan-note/petal/issues/28

Vanessa 1 年之前
父節點
當前提交
a339144007
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/src/plugin/Setting.ts

+ 2 - 0
app/src/plugin/Setting.ts

@@ -7,6 +7,7 @@ export class Setting {
     private destroyCallback: () => void;
     private width: string;
     private height: string;
+    public dialog:Dialog;
 
     constructor(options: {
         height?: string,
@@ -97,5 +98,6 @@ export class Setting {
             }
             dialog.destroy();
         });
+        this.dialog = dialog;
     }
 }