small improvement to remove eval using builtin function `getattr`.
@ -466,10 +466,11 @@ class ElectrumWindow(QMainWindow):
for p in self.plugins:
if not p.is_enabled():
continue
try:
f = eval('p.'+name)
f = getattr(p, name, None)
except:
if not callable(f):
return
apply(f, args)