Modify window show logic 41/303441/1
authorliwei90727 <wei90727.li@samsung.com>
Mon, 9 Oct 2023 10:28:59 +0000 (18:28 +0800)
committerSangYong Park <sy302.park@samsung.com>
Thu, 28 Dec 2023 02:09:58 +0000 (11:09 +0900)
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 <wei90727.li@samsung.com>
wrt_app/src/web_application.ts

index 54e4aa35681e1b07e883e727e05cc4b9fd378dff..402bb9708706c9d636b7116f303204d8ae39f926 100644 (file)
@@ -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();
       }
     }
   }