From: liwei90727 Date: Mon, 9 Oct 2023 10:28:59 +0000 (+0800) Subject: Modify window show logic X-Git-Tag: submit/tizen/20231011.160141~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2aa345f928adc8c1d445e4dc52e41fbdd34cfeaf;p=platform%2Fframework%2Fweb%2Fwrtjs.git Modify window show logic If window size is 1, then show main window, if window size >2, show last window, it's more reasonable. Change-Id: Iac1b48b5cb144d420357d09c5dba820a89f967da Signed-off-by: liwei90727 --- diff --git a/wrt_app/src/web_application.ts b/wrt_app/src/web_application.ts index 54e4aa35..402bb970 100644 --- a/wrt_app/src/web_application.ts +++ b/wrt_app/src/web_application.ts @@ -432,9 +432,10 @@ export class WebApplication { console.log('WebApplication : show'); if (!this.mainWindow.isVisible()) { console.log(`show this.windowList.length : ${this.windowList.length}`); - this.mainWindow.show(); if (this.windowList.length > 1) { this.windowList[this.windowList.length - 1].moveTop(); + } else { + this.mainWindow.show(); } } }