mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:42:38 +00:00
An open transaction page keeps the old "Show in …" links after the third-party transaction URL setting is changed or cleared #1136
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#1136
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A transaction page that is already open in Activity keeps the "Show in " entries it built when it was opened. After the third-party transaction URL setting is changed or cleared, its menu still offers the old site, and choosing it puts the old address with the transaction ID into the confirmation popup.
To reproduce:
https://one.example/tx/%s.https://two.example/tx/%s, or clear it.The menu still has "Show in one.example", and choosing it opens the confirmation popup with
https://one.example/tx/<txid>. The stored setting is already the new value, or empty.The stale entry survived other tabs, a new block, a new incoming payment and a switch to another wallet and back (one launch). Only Back and reopening, or a restart, cleared it.
The menu's entries come from an invokable call inside a binding, which is evaluated again only when the transaction ID changes:
github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/pages/wallet/TransactionDetail.qml (L89-L98)thirdPartyTransactionLinks()has no change signal the binding can follow, and the page is kept alive on the wallet's Activity stack. Referring tooptionsModel.thirdPartyTransactionUrlsin the binding, or making the links a property with that notifier, would let the menu update. #1052 ate89a2bcd4624moves this menu intoTransactionActionsMenu.qmlwith the same one-time call, by its diff, and also uses that component for the Activity row menu.The impact is low. Nothing is opened without the confirmation popup, which shows the full address. The effect is that a site just removed from the setting is still offered on the page the user returns to. Bitcoin-Qt, by its source, keeps its entries until a restart and says a restart is needed. The setting came with #598.
Reproduced on
qt6at2bd5a61e8304andeed1f426fcb6, macOS arm64 / Qt 6.9.0, isolated regtest, offscreen only. Clicks went through the test bridge. It cannot type%, Tab or Return, so%swas written into the field directly and the edit was committed by moving the focus away programmatically. I only ever cancelled the confirmation popup.#1052 is now merged, and the Activity row menu has the same problem. After the setting is changed, reopening the row menu on the same transaction still offers "Show in one.example", with the old address in the confirmation, while another row offers the new host. After the setting is cleared, the same row still offered the previous host. The binding is now in the shared menu:
github.com/bitcoin-core/gui-qml@efc4a2c754/qml/components/TransactionActionsMenu.qml (L21)On
efc4a2c754ebthe transaction page still keeps the old entry too (3 of 3). One launch for the row menu, offscreen; the menu was opened through the test bridge, which cannot right-click.