From 7aee5d56a1a96e982cef748327e809afb436d2a3 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 31 Jul 2012 09:08:04 +0200 Subject: [PATCH] [Rigo] correct indentation --- rigo/rigo/ui/gtk3/controllers/applications.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rigo/rigo/ui/gtk3/controllers/applications.py b/rigo/rigo/ui/gtk3/controllers/applications.py index d2743dc4d..25e9674f7 100644 --- a/rigo/rigo/ui/gtk3/controllers/applications.py +++ b/rigo/rigo/ui/gtk3/controllers/applications.py @@ -334,7 +334,7 @@ class ApplicationsViewController(GObject.Object): if text == "rigo:update": self._update_repositories_safe() return - if text == "rigo:upgrade": + elif text == "rigo:upgrade": self.upgrade() return elif text == "rigo:confupdate": @@ -390,13 +390,13 @@ class ApplicationsViewController(GObject.Object): return try: - matches = self.__search_produce_matches(text) - # we have to decide if to show the treeview in - # the UI thread, to avoid races (and also because we - # have to...) - self.set_many_safe(matches, _from_search=text) - if matches: - self._add_recent_search_safe(text) + matches = self.__search_produce_matches(text) + # we have to decide if to show the treeview in + # the UI thread, to avoid races (and also because we + # have to...) + self.set_many_safe(matches, _from_search=text) + if matches: + self._add_recent_search_safe(text) finally: self._service.repositories_lock.release()