Fix plugins loading

This commit is contained in:
Dmitri Bogomolov 2020-07-16 14:16:29 +03:00
parent 099202f57b
commit 302ae64fbf
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -48,7 +48,7 @@ from utils import str_broadcast_subscribers, avatarize
import bitmessage_icons_rc # noqa:F401 pylint: disable=unused-import import bitmessage_icons_rc # noqa:F401 pylint: disable=unused-import
try: try:
from plugins.plugin import get_plugin, get_plugins from pybitmessage.plugins.plugin import get_plugin, get_plugins
except ImportError: except ImportError:
get_plugins = False get_plugins = False
@ -1406,6 +1406,7 @@ class MyForm(settingsmixin.SMainWindow):
self._notifier = _simple_notify self._notifier = _simple_notify
if not get_plugins: if not get_plugins:
self._theme_player = None
return return
_plugin = get_plugin('notification.message') _plugin = get_plugin('notification.message')