From ff93497459eb4da32fde2e13d39de29a11a99fa3 Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Mon, 30 Mar 2020 19:01:29 -0400 Subject: [PATCH] recent.py: Allow the clear button to apply to whichever tab is currently active. --- usr/lib/linuxmint/mintMenu/plugins/recent.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/recent.py b/usr/lib/linuxmint/mintMenu/plugins/recent.py index 6e2909f..c16524c 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/recent.py +++ b/usr/lib/linuxmint/mintMenu/plugins/recent.py @@ -149,7 +149,11 @@ class pluginclass: return True def clrmenu(self, *args, **kargs): - self.RecManagerInstance.purge_items() + if self.builder.get_object("RecentTabs").get_current_page() == 0: # files + self.RecManagerInstance.purge_items() + else: # apps + self.settings.reset("recent-apps-list") + self.DoRecent() def AddRecentBtn(self, Name, RecentImage):