As the QML app can have multiple active wallets managed from
a single window (unlike the desktop Qt version), we let each
wallet manage its own user notification queue (as there are
some rules here specific to each wallet, e.g. not emitting
user notifications for each tx while the wallet is still
syncing), including collating and rate limiting. The app then
consumes the userNotify events from all active wallets, and
adds these to its own queue, which get displayed (eventually,
again implementing rate limiting) to the user.
It also uses timers efficiently, only enabling them if there
are actual userNotify events waiting.
If at any point the QML app wants to use multiple windows,
it can forego on the app user notification queue and instead
attach each window to the associated wallet userNotify signal.
app
▲
│
│ timer -> userNotify(msg) signal
│
┌──┬───┴───────┐
│ │ │ app user notification queue
└──┴───▲───────┘
│
│ timer -> userNotify(wallet, msg) signal
│
┌──┬───┴───────┐
│ │ │ wallet user notification queue
└──┴───▲───────┘
│
│ new_transaction
│
wallet
(using string error code for now, ideally should be properly defined
as an enum)
Also fix animation bug and work around broken ListView header implementation
show sane main view when no wallet loaded.
show error dialog when wallet could not be loaded.
show wallet up_to_date indicator in title bar.
refactor QETransactionListModel to be more self-contained.
Currently only Electrum seeds are considered valid.
For BIP39 additional dialog is needed.
For SLIP39 multiple mnemonics need to be supported to generate a seed