mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-02-16 22:44:09 -06:00
Core: Fixed small issue when switching between accounts on invisible interface
This commit is contained in:
parent
fda5250a52
commit
7c959088e0
@ -801,7 +801,10 @@ class Controller(object):
|
|||||||
output.speak(msg, True)
|
output.speak(msg, True)
|
||||||
|
|
||||||
def next_account(self, *args, **kwargs):
|
def next_account(self, *args, **kwargs):
|
||||||
index = self.accounts.index(self.current_account)
|
try:
|
||||||
|
index = self.accounts.index(self.current_account)
|
||||||
|
except ValueError:
|
||||||
|
index = -1
|
||||||
if index+1 == len(self.accounts):
|
if index+1 == len(self.accounts):
|
||||||
index = 0
|
index = 0
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user