recent.py: Allow the clear button to apply to whichever tab is currently
active.
This commit is contained in:
parent
6f69d0e499
commit
ff93497459
@ -149,7 +149,11 @@ class pluginclass:
|
||||
return True
|
||||
|
||||
def clrmenu(self, *args, **kargs):
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user