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
1 changed files with 2 additions and 0 deletions

View File

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