From 919fdefc9c65cc19c72db373501c8a87926dceca Mon Sep 17 00:00:00 2001 From: dinglili Date: Mon, 15 Jul 2024 10:41:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=B3=BB=E7=BB=9F=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=A1=B5=E9=9D=A2=E7=A6=81=E7=94=A8=E4=B8=8A=E4=B8=80?= =?UTF-8?q?=E6=AD=A5=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../code/electron-sandbox/deploy/deployWindowMain.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/vs/code/electron-sandbox/deploy/deployWindowMain.ts b/src/vs/code/electron-sandbox/deploy/deployWindowMain.ts index ab4ff2b7..803a5300 100644 --- a/src/vs/code/electron-sandbox/deploy/deployWindowMain.ts +++ b/src/vs/code/electron-sandbox/deploy/deployWindowMain.ts @@ -471,9 +471,9 @@ class deployWindow { console.log("renderer send kylinide.installWizard.init.configSelect"); let result = await ipcRenderer.invoke('kylinide.installWizard.init.configSelect', data); if (result === void 0) { - this.prevBtn!.disabled = false; return; } + this.prevBtn!.disabled = true; const parentdiv = document.getElementById('osInfo') as HTMLDivElement; const parentdivshow = document.getElementById('osInfoShow') as HTMLDivElement; parentdiv.innerHTML = ""; @@ -649,14 +649,10 @@ class deployWindow { preTab.style.display = 'none'; this.onlineInstallTabArrayIndex = this.onlineInstallTabArrayIndex + n; this.showTabFromIndex(this.onlineInstallTabArray, this.onlineInstallTabArrayIndex); - this.prevBtn!.disabled = false; + if (this.onlineInstallTabArray[this.onlineInstallTabArrayIndex] !== "onlineInstallTab2") + this.prevBtn!.disabled = false; } } - // if (onlineInstallTabArray[onlineInstallTabArrayIndex] === "onlineInstallTab3") { - // this.nextBtn!.disabled = true; - // this.nextBtn!.innerHTML = setLanguage('okStep'); - - // } if (this.onlineInstallTabArray[this.onlineInstallTabArrayIndex] === "onlineInstallTab4") { console.log("onlineInstallTab4 last"); this.prevBtn!.disabled = true; @@ -852,6 +848,8 @@ class deployWindow { if (this.onlineInstallTabArray[this.onlineInstallTabArrayIndex] === 'onlineInstallTab2') { this.nextBtn!.disabled = false; } + if (this.onlineInstallTabArray[this.onlineInstallTabArrayIndex] !== "onlineInstallTab1") + this.prevBtn!.disabled = true; this.showTabFromIndex(this.onlineInstallTabArray, this.onlineInstallTabArrayIndex); } }