address code review

This commit is contained in:
Iuri Matias 2020-05-21 19:32:27 -04:00
parent c1f6a0d06d
commit 50fc70adfb
3 changed files with 3 additions and 7 deletions

View File

@ -10,7 +10,7 @@ type OnboardingController* = ref object of SignalSubscriber
variant*: QVariant
model*: AccountModel
proc newController*(events: EventEmitter, model: AccountModel): OnboardingController =
proc newController*(model: AccountModel): OnboardingController =
result = OnboardingController()
result.model = model
result.view = newOnboardingView(result.model)

View File

@ -63,7 +63,7 @@ proc mainProc() =
wallet.init()
profile.init($accountsModel.subaccounts) # TODO: use correct account
var onboarding = onboarding.newController(events, accountsModel)
var onboarding = onboarding.newController(accountsModel)
onboarding.init()
engine.setRootContextProperty("onboardingModel", onboarding.variant)
@ -83,7 +83,7 @@ proc mainProc() =
accountsModel.events.on("accountsReady") do(a: Args):
appState.addChannel("test")
appState.addChannel("test2")
engine.load("../ui/main.qml")
# Please note that this must use the `cdecl` calling convention because

View File

@ -15,10 +15,6 @@ SwipeView {
currentItem.txtPassword.focus = true;
}
ListModel {
id: generatedAccountsModel
}
Item {
id: wizardStep2
property int selectedIndex: 0