main: show "No applications" on launch [fix] 74/75974/2
authorKamil Lipiszko <k.lipiszko@samsung.com>
Wed, 22 Jun 2016 08:47:27 +0000 (10:47 +0200)
committerKamil Lipiszko <k.lipiszko@samsung.com>
Wed, 22 Jun 2016 09:05:03 +0000 (11:05 +0200)
Change-Id: I4fcd14faacf3fc9b8b8a97c330b62b6357842dd5

src/main.c

index 9364bb1..e98b834 100644 (file)
@@ -140,14 +140,15 @@ static Eina_Bool _list_timer_cb(void *data)
                goto END;
        }
 
+       elm_object_part_text_set(main_info.layout, "no,apps,txt", _("IDS_TASKMGR_NPBODY_NO_APPLICATIONS_ABB2"));
+
        main_info.pkg_list = list_pkg_list_get();
        if (!main_info.pkg_list) {
                _E("pkg_list is empty");
+               elm_layout_signal_emit(main_info.layout, "no,apps,txt,show", "no,apps,txt");
                goto END;
        }
 
-       elm_object_part_text_set(main_info.layout, "no,apps,txt", _("IDS_TASKMGR_NPBODY_NO_APPLICATIONS_ABB2"));
-
        if (TASK_MGR_ERROR_NO_DATA == ret) {
                _D("There is no application");
                item_clear_set_disable(main_info.scroller);