From 7568880f26b4d9fa804c05fc618f77852dbdc5a6 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Fri, 15 Oct 2021 21:58:14 +0200 Subject: [PATCH] quick fix for `production is not defined` error --- src/app/boot/app_controller.nim | 1 - src/nim_status_client.nim | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/boot/app_controller.nim b/src/app/boot/app_controller.nim index 325ebf3f78..f1c76d5171 100644 --- a/src/app/boot/app_controller.nim +++ b/src/app/boot/app_controller.nim @@ -95,7 +95,6 @@ proc delete*(self: AppController) = self.communityService.delete proc startupDidLoad*(self: AppController) = - echo "StartupDidLoad" singletonInstance.engine.load(newQUrl("qrc:///main.qml")) # self.login.init() # self.onboarding.init() diff --git a/src/nim_status_client.nim b/src/nim_status_client.nim index de7b8c4e6d..b513ea91d9 100644 --- a/src/nim_status_client.nim +++ b/src/nim_status_client.nim @@ -240,8 +240,6 @@ proc mainProc() = initControllers() - appController.start() - # Handle node.stopped signal when user has logged out status.events.once("nodeStopped") do(a: Args): # TODO: remove this once accounts are not tracked in the AccountsModel @@ -269,7 +267,7 @@ proc mainProc() = # https://doc.qt.io/archives/qtjambi-4.5.2_01/com/trolltech/qt/qtjambi-linguist-programmers.html changeLanguage("en") - #singletonInstance.engine.load(newQUrl("qrc:///main.qml")) + appController.start() # Please note that this must use the `cdecl` calling convention because # it will be passed as a regular C function to statusgo_backend. This means that