1
0
Commit Graph

16 Commits

Author SHA1 Message Date
Sander van Grieken
2f8ab8027b qml: split off AddressDelegate and handle imported addresses more gracefully 2023-04-21 16:37:39 +02:00
SomberNight
fcff4b7274 qml: begone, you C-style for loops
how am I going to continue in the middle of the loop body if the i+=1 is at the end? :P
2023-04-05 14:13:40 +00:00
SomberNight
e47059c96b qml: addresses list should not depend on wallet.use_change
wallet.use_change is a weird preference using which a user can disable
sending new change to change addresses.
However the setting can be toggled at ~any time; and the user might
have pre-existing balance on change addresses, which we should not hide.
2023-04-05 14:01:45 +00:00
Sander van Grieken
2dff6a10ca qml: fix issue with number of addresses in model 2023-02-07 11:18:27 +01:00
Sander van Grieken
0bc8460005 qml: don't initialize instance variables on class scope for non-singletons
(this somehow escaped attention before, as most objects usually don't have multiple instances,
unless multiple wallets are open at the same time.)
Also, move all signal declarations, class constants and variables to the top of class definitions.
2023-01-12 13:09:21 +01:00
Sander van Grieken
e3b3f04afe qml: refresh address list on new transaction by setting dirty flag 2022-10-25 16:45:27 +02:00
Sander van Grieken
6ea3a16cc8 add wallet type imported addresses/private keys to wizard 2022-10-21 13:32:16 +02:00
SomberNight
7b095158bf wallet: add get_label_for_address, and make get_label private
fixes https://github.com/spesmilo/electrum/issues/7919

In the past, when creating payment requests, we keyed them by on-chain address,
and set/saved the msg of the request as label for the address.
Many places in the code were calling wallet.get_label(addr) with the expectation that
relevant payment requests are found and their message/description (if any) is considered.

wallet.get_label(key) is now made private, and instead the explicit non-polymorphic
wallet.get_label_for_{address,rhash,txid} alternatives should be used.
2022-08-09 17:21:14 +02:00
Sander van Grieken
c505de2fe0 fixes after rebase persist_lnwatcher 2022-07-07 18:29:01 +02:00
Sander van Grieken
7ef52c6625 listmodels self-initialize,
lazy-load listmodels in QEWallet,
process channel updates in qechannellistmodel
2022-07-07 18:29:01 +02:00
Sander van Grieken
e78a239bf5 bugfixes, lifecycle improvements 2022-07-07 18:29:01 +02:00
Sander van Grieken
15dec47516 compat with android/python3.8 2022-07-07 18:29:01 +02:00
Sander van Grieken
ef91969fba support update of address in addresslistmodel 2022-07-07 18:29:01 +02:00
Sander van Grieken
e8ce221a34 Qt.UserRole can be 0 offset, don't repeat wallet create request dict 2022-07-07 18:29:01 +02:00
Sander van Grieken
ead4600da6 UI address list 2022-07-07 18:28:00 +02:00
Sander van Grieken
dec0cdd0d3 refactor QEAddressListModel and QETransactionListModel to their own files 2022-07-07 18:28:00 +02:00