recent.py: Allow the clear button to apply to whichever tab is currently

active.
This commit is contained in:
Michael Webster 2020-03-30 19:01:29 -04:00
parent 6f69d0e499
commit ff93497459

View File

@ -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):