From b2f2801d3d5620e54ba2695f99a50000ba024bbd Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Tue, 19 Oct 2021 16:22:49 +0200 Subject: [PATCH] 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. --- src/app/boot/app_controller.nim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/boot/app_controller.nim b/src/app/boot/app_controller.nim index 54ab903a74..c379a9edfe 100644 --- a/src/app/boot/app_controller.nim +++ b/src/app/boot/app_controller.nim @@ -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() \ No newline at end of file