kivy: minor fix (switch_to)

This commit is contained in:
ThomasV 2017-07-24 12:04:04 +02:00
parent d5d5e8af5c
commit 622f459c41
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ class ElectrumWindow(App):
def switch_to(self, name):
s = getattr(self, name + '_screen', None)
if self.send_screen is None:
if s is None:
s = self.tabs.ids[name + '_screen']
s.load_screen()
panel = self.tabs.ids.panel