check to see if fiat button already exists on send tab before telling user they must restart Electrum to see it

This commit is contained in:
Darrin Daigle 2014-03-23 12:58:42 -05:00
parent 669d8041e4
commit bc3bcc20dc
1 changed files with 4 additions and 1 deletions

View File

@ -337,7 +337,10 @@ class Plugin(BasePlugin):
out = BasePlugin.toggle(self)
self.win.update_status()
if self.config.get('use_exchange_rate'):
self.gui.main_window.show_message("To see fiat amount when sending bitcoin, please restart Electrum to activate the new GUI settings.")
try:
self.fiat_button
except:
self.gui.main_window.show_message("To see fiat amount when sending bitcoin, please restart Electrum to activate the new GUI settings.")
return out