From 42a0e8cd47b7c066565aee1394e3b1f5d787c0f4 Mon Sep 17 00:00:00 2001 From: hordepfo Date: Wed, 22 Jan 2014 03:56:22 +0000 Subject: [PATCH] Clear search entry when switching from Apps to Favorites Took two clicks because of a loop in the logic (setting to empty also invokes setting the tab). Fixes #44 --- usr/lib/linuxmint/mintMenu/plugins/applications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index 9f5a0c1..5625356 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -571,8 +571,9 @@ class pluginclass( object ): elif tabNum == 1: notebook.set_current_page( 1 ) - self.lastActiveTab = tabNum self.focusSearchEntry() + self.lastActiveTab = tabNum + def Todos( self ):