Core: Fixed small issue when switching between accounts on invisible interface

This commit is contained in:
Manuel Cortez 2023-02-06 02:43:00 -06:00
parent fda5250a52
commit 7c959088e0
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -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: