fix rebase conflict
This commit is contained in:
parent
dafd11fbc0
commit
0a2c8bc86c
|
@ -70,8 +70,12 @@ proc mainProc() =
|
||||||
var appState = state.newAppState()
|
var appState = state.newAppState()
|
||||||
debug "Application State", title=appState.title
|
debug "Application State", title=appState.title
|
||||||
|
|
||||||
var accounts = status_test.setupNewAccount()
|
# var accounts = status_test.setupNewAccount()
|
||||||
debug "Accounts", accounts0 = parseJSON(accounts)[0], accounts1 = parseJSON(accounts)[1]
|
# echo "---------"
|
||||||
|
# echo parseJSON(accounts)[0]
|
||||||
|
# echo parseJSON(accounts)[1]
|
||||||
|
# echo "---------"
|
||||||
|
# discard status_test.setupNewAccount()
|
||||||
|
|
||||||
events.on("node:ready") do(a: Args):
|
events.on("node:ready") do(a: Args):
|
||||||
status_chat.startMessenger()
|
status_chat.startMessenger()
|
||||||
|
@ -106,7 +110,7 @@ proc mainProc() =
|
||||||
# discard qmlRegisterSingletonType[LibStatusQml]("im.status.desktop.Status", 1, 0, "Status", initLibStatusQml)
|
# discard qmlRegisterSingletonType[LibStatusQml]("im.status.desktop.Status", 1, 0, "Status", initLibStatusQml)
|
||||||
|
|
||||||
var profile = profile.newController()
|
var profile = profile.newController()
|
||||||
profile.init(accounts) # TODO: use correct account
|
# profile.init(accounts) # TODO: use correct account
|
||||||
engine.setRootContextProperty("profileModel", profile.variant)
|
engine.setRootContextProperty("profileModel", profile.variant)
|
||||||
|
|
||||||
signalController.init()
|
signalController.init()
|
||||||
|
|
|
@ -137,7 +137,7 @@ QtObject:
|
||||||
echo "Account saved succesfully"
|
echo "Account saved succesfully"
|
||||||
|
|
||||||
proc generateRandomAccountAndLogin*(self: Onboarding) {.slot.} =
|
proc generateRandomAccountAndLogin*(self: Onboarding) {.slot.} =
|
||||||
status_test.setupNewAccount()
|
discard status_test.setupNewAccount()
|
||||||
self.events.emit("node:ready", Args())
|
self.events.emit("node:ready", Args())
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue