|
@ -393,11 +393,9 @@ class Plugin(BasePlugin): |
|
|
def toggle(self): |
|
|
def toggle(self): |
|
|
out = BasePlugin.toggle(self) |
|
|
out = BasePlugin.toggle(self) |
|
|
self.win.update_status() |
|
|
self.win.update_status() |
|
|
if self.config.get('use_exchange_rate'): |
|
|
self.win.tabs.removeTab(1) |
|
|
try: |
|
|
new_send_tab = self.gui.main_window.create_send_tab() |
|
|
self.fiat_button |
|
|
self.win.tabs.insertTab(1, new_send_tab, _('Send')) |
|
|
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 |
|
|
return out |
|
|
|
|
|
|
|
|
|
|
|
|
|
|