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