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:
parent
c084a56e60
commit
b2f2801d3d
|
@ -181,4 +181,10 @@ proc load*(self: AppController) =
|
|||
self.mainModule.load()
|
||||
|
||||
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()
|
Loading…
Reference in New Issue