From a1296953e9cc8abdb207441827e4efba24e0eaa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=81=B6?= <2424880409@qq.com> Date: Mon, 15 May 2023 09:50:36 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20=E4=BF=AE=E5=A4=8D=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E5=91=BC=E8=B5=B7=E7=8A=B6=E6=80=81=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E8=B6=85=E7=BA=A7=E9=9D=A2=E6=9D=BF=E5=86=8D=E6=AC=A1=E5=91=BC?= =?UTF-8?q?=E8=B5=B7=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/common/api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/common/api.ts b/src/main/common/api.ts index 4e76f69..a6a3f93 100644 --- a/src/main/common/api.ts +++ b/src/main/common/api.ts @@ -71,9 +71,8 @@ class API { } public openPlugin({ data: plugin }, window) { - if (this.currentPlugin && this.currentPlugin.name === plugin.name) return; window.setSize(window.getSize()[0], 60); - runnerInstance.removeView(window); + this.removePlugin(null, window); runnerInstance.init(plugin, window); this.currentPlugin = plugin; window.webContents.executeJavaScript(