From 69d5406160655c6b74ef2bd25a5d2ef31bea5c1f Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Mon, 30 Jul 2018 17:40:21 +0900 Subject: Change hide icon source with contains If homescreen repo use homescreen without "-2017", Launcher need hide icon for homescreen or "-2017". So change the code compare with application id. Change-Id: If1d33ea1718909626b1a04f128ee9b385bc2d447 Signed-off-by: zheng_wenlong --- launcher/src/applicationmodel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/launcher/src/applicationmodel.cpp b/launcher/src/applicationmodel.cpp index 90f81de..17e38fb 100644 --- a/launcher/src/applicationmodel.cpp +++ b/launcher/src/applicationmodel.cpp @@ -60,8 +60,10 @@ ApplicationModel::Private::Private() auto const id = jso["id"].toString(); auto const icon = get_icon_name(jso); - // Hide HomeScreen icon itself - if (name != "launcher" && name != "homescreen-2017" && name != "OnScreenApp") { + if ( name != "launcher" && + name != "homescreen-2017" && + name != "homescreen" && + name != "OnScreenApp") { this->data.append(AppInfo(icon, name, id)); } -- cgit 1.2.3-korg