add fallback icons
This commit is contained in:
@@ -80,8 +80,8 @@ class RAction():
|
||||
action.setText(self.label)
|
||||
self._action = action
|
||||
if self.icon_from_theme:
|
||||
action.setIcon(Icon.fromTheme(self.icon_from_theme))
|
||||
if self.icon_file:
|
||||
action.setIcon(Icon.fromTheme(self.icon_from_theme, self.icon_file))
|
||||
elif self.icon_file:
|
||||
action.setIcon(Icon(self.icon_file))
|
||||
if self.shortcut:
|
||||
action.setShortcut(self.shortcut)
|
||||
|
||||
Reference in New Issue
Block a user