From: jihwankim Date: Thu, 5 Nov 2020 09:41:15 +0000 (+0900) Subject: [DA] Emit 'ready-to-show' instead of call 'show'. X-Git-Tag: accepted/tizen/unified/20201106.051703^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=599f7c672443944635f6c56509309cf8294b9955;p=platform%2Fframework%2Fweb%2Fwrtjs.git [DA] Emit 'ready-to-show' instead of call 'show'. 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 --- diff --git a/wrt_app/src/runtime.ts b/wrt_app/src/runtime.ts index 928d595..fe6daf6 100644 --- a/wrt_app/src/runtime.ts +++ b/wrt_app/src/runtime.ts @@ -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');