Fix an issue from #1153 for setup without plugins package
This commit is contained in:
parent
c7d3784b80
commit
2504c80da6
|
@ -255,6 +255,8 @@ class MyForm(settingsmixin.SMainWindow):
|
|||
|
||||
# load all gui.menu plugins with prefix 'address'
|
||||
self.menu_plugins = {'address': []}
|
||||
if not get_plugins:
|
||||
return
|
||||
for plugin in get_plugins('gui.menu', 'address'):
|
||||
try:
|
||||
handler, title = plugin(self)
|
||||
|
|
Reference in New Issue
Block a user