clean up
This commit is contained in:
parent
13bfc56337
commit
f59401a80a
|
@ -1,13 +1,7 @@
|
|||
import NimQml
|
||||
import json
|
||||
import ../../status/accounts as status_accounts
|
||||
import nimcrypto
|
||||
import ../../status/utils
|
||||
import ../../status/libstatus
|
||||
import ../../models/accounts as Models
|
||||
# import ../../constants/constants
|
||||
import ../signals/types
|
||||
import uuids
|
||||
import eventemitter
|
||||
import view
|
||||
|
||||
|
@ -18,13 +12,9 @@ type OnboardingController* = ref object of SignalSubscriber
|
|||
|
||||
proc newController*(events: EventEmitter, model: AccountModel): OnboardingController =
|
||||
result = OnboardingController()
|
||||
# TODO: events should be specific to the model itself
|
||||
# result.model = newAccountModel()
|
||||
result.model = model
|
||||
result.view = newOnboardingView(result.model)
|
||||
result.variant = newQVariant(result.view)
|
||||
# result.model.events.on("accountsReady") do(a: Args):
|
||||
# events.emit("node:ready", Args())
|
||||
|
||||
proc delete*(self: OnboardingController) =
|
||||
delete self.view
|
||||
|
|
|
@ -1,14 +1,8 @@
|
|||
import NimQml
|
||||
import Tables
|
||||
import json
|
||||
import eventemitter
|
||||
import ../../status/accounts as status_accounts
|
||||
import nimcrypto
|
||||
import ../../status/utils
|
||||
import ../../status/libstatus
|
||||
import ../../models/accounts as Models
|
||||
# import ../../constants/constants
|
||||
import uuids
|
||||
|
||||
type
|
||||
AddressRoles {.pure.} = enum
|
||||
|
|
Loading…
Reference in New Issue