From 2e7f6364d026c14ea3b892b475d5da39a2fb1e02 Mon Sep 17 00:00:00 2001 From: Youngsoo Choi Date: Thu, 13 May 2021 07:20:36 -0700 Subject: [PATCH] Recover "Fix issue in multi view(window) scenario" This recovers commit ab17ff17c22bdacdd7948d33f57b6024cb37613e. Change-Id: Icc803dc66a78bf4d3468973cba068b89eddb2774 Signed-off-by: Youngsoo Choi --- wrt_app/src/web_application.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wrt_app/src/web_application.ts b/wrt_app/src/web_application.ts index 31f3915..6187903 100644 --- a/wrt_app/src/web_application.ts +++ b/wrt_app/src/web_application.ts @@ -367,8 +367,11 @@ export class WebApplication { if (this.profileDelegate.backgroundExecutable()) { console.log('skip showing while backgroundExecution mode'); } else if (!this.mainWindow.isVisible()) { - console.log('show window'); + console.log(`show this.windowList.length : ${this.windowList.length}`); this.mainWindow.show(); + if (this.windowList.length > 1) { + this.windowList[this.windowList.length - 1].moveTop(); + } } this.profileDelegate.show(); } -- 2.7.4