From 81d5574fff987ff007c078cb4c7220b48523af56 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 10 Mar 2021 10:07:28 +0100 Subject: [PATCH] Fix opened application tabs belong to app with status 5 don't get restored after reload --- api/js/framework/fw_base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/framework/fw_base.js b/api/js/framework/fw_base.js index b8c069fd93..eeb8b5f52d 100644 --- a/api/js/framework/fw_base.js +++ b/api/js/framework/fw_base.js @@ -517,7 +517,7 @@ var fw_base = (function(){ "use strict"; return Class.extend( //Set the tab closeable if there's more than one tab this.tabsUi.setCloseable(this.tabsUi._isNotTheLastTab()); // Do not show tab header if the app is with status 5, means run in background - if (_status == 5) _app.tab.hideTabHeader(true); + if (_status == 5 && !this.tabApps[_app.appName]) _app.tab.hideTabHeader(true); } },