From 20e39ebcb3a7cc7fec7f16c5cba220a0de3deaec Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 8 Apr 2012 19:03:56 +0200 Subject: [PATCH] [Rigo] make sure to always show Applications when set_many() is called --- rigo/rigo/ui/gtk3/controllers/applications.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rigo/rigo/ui/gtk3/controllers/applications.py b/rigo/rigo/ui/gtk3/controllers/applications.py index e31a4c3a9..a062b1b32 100644 --- a/rigo/rigo/ui/gtk3/controllers/applications.py +++ b/rigo/rigo/ui/gtk3/controllers/applications.py @@ -341,7 +341,7 @@ class ApplicationsViewController(GObject.Object): Setup UI in order to show a "not found" message if required. """ nf_box = self._not_found_box - if items_count: + if items_count or text is None: nf_box.set_property("expand", False) nf_box.hide() self._view.get_parent().show() @@ -559,9 +559,8 @@ class ApplicationsViewController(GObject.Object): self._view.clear_model() ApplicationMetadata.discard() self.append_many(opaque_list) - if _from_search: - self._setup_search_view( - len(opaque_list), _from_search) + self._setup_search_view( + len(opaque_list), _from_search) def clear_safe(self): GLib.idle_add(self.clear)