Skip to content

Commit

Permalink
Refresh and reset interface
Browse files Browse the repository at this point in the history
  • Loading branch information
bitlogik committed Mar 3, 2021
1 parent e9bd456 commit 28bfe92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uniblow.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def erase_info():
delattr(app, "wallet")
app.gui_panel.balance_info.SetLabel("")
app.gui_panel.account_addr.SetLabel("")
app.gui_frame.Refresh()


class display_timer(wx.Timer):
Expand Down Expand Up @@ -212,6 +213,7 @@ def device_selected(device):
if password_BasicFile is None:
app.gui_panel.devices_choice.SetSelection(0)
app.gui_panel.coins_choice.Disable()
erase_info()
return
except Exception as exc:
warn_modal(str(exc))
Expand All @@ -220,6 +222,7 @@ def device_selected(device):
raise exc
app.gui_panel.devices_choice.SetSelection(0)
app.gui_panel.coins_choice.Disable()
erase_info()
return
app.device = device_loaded
if app.device.created:
Expand Down Expand Up @@ -250,6 +253,7 @@ def set_coin(coin, network, wallet_type):
if not getattr(sys, "frozen", False):
# output the exception when dev environment
raise exc
erase_info()
return
app.gui_panel.account_addr.SetValue(account_id)
imgbuf = BytesIO()
Expand Down

0 comments on commit 28bfe92

Please sign in to comment.