Modify window show logic 44/299744/2
authorliwei90727 <wei90727.li@samsung.com>
Mon, 9 Oct 2023 10:28:59 +0000 (18:28 +0800)
committerliwei90727 <wei90727.li@samsung.com>
Tue, 10 Oct 2023 08:50:42 +0000 (16:50 +0800)
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();
       }
     }
   }