fix(@desktop/profile): changing language does not change it in UI

A call to the init of the language service was missing.
Calling it during boot process reoslves the bug.

fixes #4104
This commit is contained in:
Khushboo Mehta 2021-11-18 15:41:51 +01:00 committed by Jakub
parent de9b475dd5
commit 7c7b2eb34b
1 changed files with 2 additions and 1 deletions

View File

@ -281,6 +281,7 @@ proc load(self: AppController) =
self.providerService.init()
self.walletAccountService.init()
self.transactionService.init()
self.languageService.init()
# other global instances
self.buildAndRegisterLocalAccountSensitiveSettings()
@ -319,4 +320,4 @@ proc buildAndRegisterUserProfile(self: AppController) =
singletonInstance.userProfile.setSendUserStatus(sendUserStatus)
singletonInstance.userProfile.setCurrentUserStatus(currentUserStatus)
singletonInstance.engine.setRootContextProperty("userProfile", self.userProfileVariant)
singletonInstance.engine.setRootContextProperty("userProfile", self.userProfileVariant)