add icon for recent files menu

This commit is contained in:
2022-01-29 20:05:36 +01:00
parent 4ac9fdf13a
commit 77fb8c0ea4
3 changed files with 4 additions and 2 deletions

View File

@@ -4,11 +4,12 @@ from raven.plugins.domain.raction import RAction
class RMenu():
def __init__(self, label: str):
def __init__(self, label: str, icon_from_theme: str = ""):
super(RMenu, self).__init__()
self.label = label
self.actions = []
self.listeners = []
self.icon_from_theme = icon_from_theme;
def add_action(self, action: RAction):
self.actions.append(action)