[VD] Fix RWI popup issue while preloading 93/222893/4 submit/tizen/20200615.012119
authorDongHyun Song <dh81.song@samsung.com>
Thu, 4 Jun 2020 23:24:58 +0000 (08:24 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Wed, 10 Jun 2020 03:17:29 +0000 (03:17 +0000)
In case of preloading, a user cannot close the guide dialog. So
This patch will close the guide dialog automatically with timeout.

Change-Id: I8d26f5d273b4ea4da616d458fa21b439f867e450
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/src/web_application.js

index b8cf47f..608ef2e 100644 (file)
@@ -327,6 +327,12 @@ class WebApplication {
             "in Timeline panel in PC before click OK button,\r\nThen you can get " +
             "profile log from the initial loading."
         wrt.tv.showDialog(this.mainWindow.webContents, message);
+
+        if (this.preloadStatus !== 'none') {
+            setTimeout(() => {
+                wrt.tv.cancelDialogs(this.mainWindow.webContents);
+            }, 5000);
+        }
     }
     suspend() {
         console.log('WebApplication : suspend');