1
0
Files
electrum/electrum
f321x e6f73522cb fix: wizard: qml: call checkIfLast in WCHaveSeed
When the user has already loaded a wallet in QML and tries to restore a
new wallet `WCHaveSeed.qml` incorrectly shows a `Finish` button instead
of a `Next` button and raises a KeyError if the user clicks on Finish
instead of resolving the passphrase input view (regression from
https://github.com/spesmilo/electrum/pull/10016).

This happens because `last` of `have_seed` depends on
`NewWalletWizard.is_single_password()` and NewWalletWizard.wants_ext(wizard_data).
`is_single_password()` is true if a wallet is already loaded,
while `wants_ext(wizard_data)` is false as `wants_ext()` depends on `seed_extend: True` in
`wizard_data` which only gets set after `apply()` of `WCHaveSeed` gets
called, however the evaluation of `WCHaveSeed` being the last view
happens before the view is shown.
By calling `checkIsLast()` in the validation timer of `WCHaveSeed` the
`last` property gets set again after `apply()` has been called, so
the view is guaranteed to correctly show either the `Finish` or `Next` button
after a seed has been entered.
2025-08-11 15:05:17 +02:00
..
2024-09-18 15:48:38 +00:00
2025-08-05 12:36:55 +00:00
2025-07-27 12:12:39 +03:00
2022-10-20 18:43:54 +00:00
2024-05-30 13:08:13 +00:00
2025-07-18 00:22:18 +00:00
2025-02-19 14:29:02 +01:00
2025-04-02 16:21:59 +00:00
2025-08-08 14:34:53 +00:00
2025-04-23 16:09:31 +02:00
2024-11-29 17:09:29 +08:00
2022-10-31 16:13:22 +00:00
2023-04-24 12:58:26 +00:00
2022-10-31 16:13:22 +00:00
2024-04-24 14:14:31 +00:00
2024-05-20 16:57:11 +02:00
2023-12-04 14:15:39 +08:00
2025-04-23 16:09:31 +02:00
2025-08-05 13:21:19 +00:00
2025-04-23 16:09:31 +02:00