mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28: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)
|
||||
|
||||
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):
|
||||
index = 0
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user