Fix an issue from #1153 for setup without plugins package

This commit is contained in:
Dmitri Bogomolov 2018-07-01 01:16:32 +03:00
parent c7d3784b80
commit 2504c80da6
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -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)