Missed "loginCompleted" signal added.

It will be removed at the end of refactoring phase, when everything is done,
but now we need it to init all parts of the app correctly.
This commit is contained in:
Sale Djenic 2021-10-19 16:22:49 +02:00 committed by Iuri Matias
parent c084a56e60
commit b2f2801d3d
1 changed files with 6 additions and 0 deletions

View File

@ -181,4 +181,10 @@ proc load*(self: AppController) =
self.mainModule.load() self.mainModule.load()
proc userLoggedIn*(self: AppController) = proc userLoggedIn*(self: AppController) =
#################################################
# At the end of refactoring this will be removed:
let loggedInUser = self.accountsService.getLoggedInAccount()
let account = Account(name: loggedInUser.name, keyUid: loggedInUser.keyUid)
self.appService.status.events.emit("loginCompleted", AccountArgs(account: account))
#################################################
self.load() self.load()