fix(wallet) start a session in case of tmp activity models
Closes: #14250
This commit is contained in:
parent
cd3a1180b0
commit
a2e8b6ebd7
|
@ -423,7 +423,8 @@ QtObject:
|
||||||
|
|
||||||
self.updateAssetsIdentities()
|
self.updateAssetsIdentities()
|
||||||
|
|
||||||
proc setFilterAddresses*(self: Controller, addresses: seq[string], allAddressesSelected: bool) =
|
# Requires self.newFilterSession() to be called after this
|
||||||
|
proc setFilterAddresses(self: Controller, addresses: seq[string], allAddressesSelected: bool) =
|
||||||
self.addresses = addresses
|
self.addresses = addresses
|
||||||
self.allAddressesSelected = allAddressesSelected
|
self.allAddressesSelected = allAddressesSelected
|
||||||
self.status.setIsFilterDirty(true)
|
self.status.setIsFilterDirty(true)
|
||||||
|
@ -443,10 +444,13 @@ QtObject:
|
||||||
|
|
||||||
self.setFilterAddresses(addresses, allAddressesSelected)
|
self.setFilterAddresses(addresses, allAddressesSelected)
|
||||||
|
|
||||||
|
# Every change of addresses have to start a new session to get incremental updates when filter is cleared
|
||||||
|
self.newFilterSession()
|
||||||
|
|
||||||
proc setFilterToAddresses*(self: Controller, addresses: seq[string]) =
|
proc setFilterToAddresses*(self: Controller, addresses: seq[string]) =
|
||||||
self.currentActivityFilter.counterpartyAddresses = addresses
|
self.currentActivityFilter.counterpartyAddresses = addresses
|
||||||
|
|
||||||
proc setFilterChains*(self: Controller, chainIds: seq[int], allEnabled: bool) =
|
proc setFilterChains(self: Controller, chainIds: seq[int], allEnabled: bool) =
|
||||||
self.chainIds = chainIds
|
self.chainIds = chainIds
|
||||||
self.status.setIsFilterDirty(true)
|
self.status.setIsFilterDirty(true)
|
||||||
self.status.emitFilterChainsChanged()
|
self.status.emitFilterChainsChanged()
|
||||||
|
@ -469,6 +473,9 @@ QtObject:
|
||||||
|
|
||||||
self.setFilterChains(chains, allChainsSelected)
|
self.setFilterChains(chains, allChainsSelected)
|
||||||
|
|
||||||
|
# Every change of chains have to start a new session to get incremental updates when filter is cleared
|
||||||
|
self.newFilterSession()
|
||||||
|
|
||||||
proc updateRecipientsModel*(self: Controller) {.slot.} =
|
proc updateRecipientsModel*(self: Controller) {.slot.} =
|
||||||
self.status.setLoadingRecipients(true)
|
self.status.setLoadingRecipients(true)
|
||||||
# Recipients don't change with filers so we can use the same request id
|
# Recipients don't change with filers so we can use the same request id
|
||||||
|
|
Loading…
Reference in New Issue