mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
Wallet: add missing notification on keypairImportModule change
Closes: #16773
This commit is contained in:
parent
47324b2354
commit
aa7a6300b1
@ -102,10 +102,12 @@ method destroyKeypairImportPopup*(self: Module) =
|
||||
self.view.emitDestroyKeypairImportPopup()
|
||||
self.keypairImportModule.delete
|
||||
self.keypairImportModule = nil
|
||||
self.view.emitKeypairImportModuleChangedSignal()
|
||||
|
||||
method runKeypairImportPopup*(self: Module, keyUid: string, mode: ImportKeypairModuleMode) =
|
||||
self.keypairImportModule = keypair_import_module.newModule(self, self.events, self.accountsService,
|
||||
self.walletAccountService, self.devicesService)
|
||||
self.view.emitKeypairImportModuleChangedSignal()
|
||||
self.keypairImportModule.load(keyUid, mode)
|
||||
|
||||
method getKeypairImportModule*(self: Module): QVariant =
|
||||
|
@ -29,10 +29,14 @@ QtObject:
|
||||
proc runKeypairImportPopup*(self: View, keyUid: string, mode: int) {.slot.} =
|
||||
self.delegate.runKeypairImportPopup(keyUid, ImportKeypairModuleMode(mode))
|
||||
|
||||
proc keypairImportModuleChanged*(self: View) {.signal.}
|
||||
proc emitKeypairImportModuleChangedSignal*(self: View) =
|
||||
self.keypairImportModuleChanged()
|
||||
proc getKeypairImportModule(self: View): QVariant {.slot.} =
|
||||
return self.delegate.getKeypairImportModule()
|
||||
QtProperty[QVariant] keypairImportModule:
|
||||
read = getKeypairImportModule
|
||||
notify = keypairImportModuleChanged
|
||||
|
||||
proc displayKeypairImportPopup*(self: View) {.signal.}
|
||||
proc emitDisplayKeypairImportPopup*(self: View) =
|
||||
|
@ -487,6 +487,7 @@ method destroyKeypairImportPopup*(self: Module) =
|
||||
self.view.emitDestroyKeypairImportPopup()
|
||||
self.keypairImportModule.delete
|
||||
self.keypairImportModule = nil
|
||||
self.view.emitKeypairImportModuleChangedSignal()
|
||||
|
||||
method runKeypairImportPopup*(self: Module) =
|
||||
if self.filter.addresses.len != 1:
|
||||
@ -497,6 +498,7 @@ method runKeypairImportPopup*(self: Module) =
|
||||
self.keypairImportModule = keypair_import_module.newModule(self, self.events, self.accountsService,
|
||||
self.walletAccountService, self.devicesService)
|
||||
self.keypairImportModule.load(keypair.keyUid, ImportKeypairModuleMode.SelectImportMethod)
|
||||
self.view.emitKeypairImportModuleChangedSignal()
|
||||
|
||||
method getKeypairImportModule*(self: Module): QVariant =
|
||||
if self.keypairImportModule.isNil:
|
||||
|
@ -223,10 +223,14 @@ QtObject:
|
||||
proc runKeypairImportPopup*(self: View) {.slot.} =
|
||||
self.delegate.runKeypairImportPopup()
|
||||
|
||||
proc keypairImportModuleChanged*(self: View) {.signal.}
|
||||
proc emitKeypairImportModuleChangedSignal*(self: View) =
|
||||
self.keypairImportModuleChanged()
|
||||
proc getKeypairImportModule(self: View): QVariant {.slot.} =
|
||||
return self.delegate.getKeypairImportModule()
|
||||
QtProperty[QVariant] keypairImportModule:
|
||||
read = getKeypairImportModule
|
||||
notify = keypairImportModuleChanged
|
||||
|
||||
proc displayKeypairImportPopup*(self: View) {.signal.}
|
||||
proc emitDisplayKeypairImportPopup*(self: View) =
|
||||
|
Loading…
x
Reference in New Issue
Block a user