Sfoglia il codice sorgente

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

Vanessa 1 anno fa
parent
commit
a339144007
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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;
     }
 }