From 1311ea2a88a04dddfd545d18b540f163d9ee51d9 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Mon, 29 Jan 2018 19:21:43 +0100 Subject: [PATCH] dynamic system menu --- src/core/gui.coffee | 1 + src/packages/CoreServices/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/gui.coffee b/src/core/gui.coffee index df00588..4e1582e 100644 --- a/src/core/gui.coffee +++ b/src/core/gui.coffee @@ -276,6 +276,7 @@ self.OS.GUI = #now get app list _API.packages.fetch (r) -> if r.result + r.result = ( it for it in r.result when it.app ) v.text = v.name for k, v of r.result menu.child[0].child = r.result if r.result ($ "[data-id = 'os_menu']", "#syspanel")[0].set "items", [menu] diff --git a/src/packages/CoreServices/package.json b/src/packages/CoreServices/package.json index a8c1003..b45cae3 100644 --- a/src/packages/CoreServices/package.json +++ b/src/packages/CoreServices/package.json @@ -1,5 +1,5 @@ { - "app":"CoreServices", + "app":null, "name":"CoreServices", "description":"This is the core services", "info":{