瀏覽代碼

bugfix: #272 if the dialog is already open, close it (#294)

James Read 2 年之前
父節點
當前提交
ceb215a6dc
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      webui.dev/js/ExecutionDialog.js

+ 4 - 0
webui.dev/js/ExecutionDialog.js

@@ -75,6 +75,10 @@ export class ExecutionDialog {
       this.executionTick()
     }, 1000)
 
+    if (this.dlg.open) {
+      this.dlg.close()
+    }
+
     this.dlg.showModal()
   }