Merge pull request #3092 from SomberNight/fix_restore_2fa_as_standard
Return loaded plugin from plugins.load_plugin()
This commit is contained in:
commit
af8b7a7fb1
|
@ -93,7 +93,7 @@ class Plugins(DaemonThread):
|
|||
|
||||
def load_plugin(self, name):
|
||||
if name in self.plugins:
|
||||
return
|
||||
return self.plugins[name]
|
||||
full_name = 'electrum_plugins.' + name + '.' + self.gui_name
|
||||
loader = pkgutil.find_loader(full_name)
|
||||
if not loader:
|
||||
|
|
Loading…
Reference in New Issue