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'
|
# load all gui.menu plugins with prefix 'address'
|
||||||
self.menu_plugins = {'address': []}
|
self.menu_plugins = {'address': []}
|
||||||
|
if not get_plugins:
|
||||||
|
return
|
||||||
for plugin in get_plugins('gui.menu', 'address'):
|
for plugin in get_plugins('gui.menu', 'address'):
|
||||||
try:
|
try:
|
||||||
handler, title = plugin(self)
|
handler, title = plugin(self)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user