[DA] Emit 'ready-to-show' instead of call 'show'. 55/246955/1 accepted/tizen/unified/20201106.051703 submit/tizen/20201105.160010
authorjihwankim <jh_marc.kim@samsung.com>
Thu, 5 Nov 2020 09:41:15 +0000 (18:41 +0900)
committerjihwankim <jh_marc.kim@samsung.com>
Thu, 5 Nov 2020 09:41:15 +0000 (18:41 +0900)
Now, to enhance launch speed of web app, DA calls 'mainWindow.show'.
But because of this, 'ready-to-show' is now emitted from electron,
and this makes malfunction after pause/resume.

So, emit 'ready-to-show' to enhance launch speed, not call 'mainwindow.show'.

Change-Id: I103b1a4fc8f89ebe8b748f43f45f7979ef9377ef
Signed-off-by: jihwankim <jh_marc.kim@samsung.com>
wrt_app/src/runtime.ts

index 928d595..fe6daf6 100644 (file)
@@ -115,7 +115,7 @@ class Runtime {
           this.webApplication.mainWindow.loadURL(src);
           this.webApplication.prelaunch(src);
           if (wrt.da) {
-            this.webApplication.show();
+            this.webApplication.mainWindow.emit('ready-to-show');
           }
         } else {
           console.log('Handling app-control event');