Review report

bitcoin-core/gui-qml: PR #985

1 minor finding · 2 suggestions

Earlier concerns neither republished nor resolved: 2 suggestions. See the Run archive for their assessments.

Findings

Link

[minor] · Explicit -lang= leaves the saved startup translation installed

With a saved GUI language, an explicit empty -lang= leaves that translation installed even though Settings resolves the language to “System default” and disables editing.

Location: qml/bitcoin.cpp:864 (head).

Details and suggested fix

Startup treats the empty result of GetArg("-lang", "") as a request to load the saved QSettings or legacy language, such as es. The asynchronous options snapshot instead recognizes -lang= as a command-line override and resolves the language to empty without using that fallback. Since m_language also starts empty, applySnapshot() emits no languageChanged, so the new hookup never calls install_language("") to remove the startup translators. The base installed the resolved language unconditionally after constructing the model. The command-line override also prevents changing the language in-app. Install the resolved language and call engine->retranslate() when settings first become ready, even when languageChanged did not fire, while retaining that signal for later edits. Add an application-level regression with a nonempty startup language and an empty resolved language. How often users invoke an empty -lang= is unestablished.


Optional improvements

Link

[suggestion] · The open Node information popup rebuilds all rows on each delivered update

While the popup is visible, every information notification replaces its entire Repeater model, adding avoidable GUI-thread delegate construction; the performance cost has not been measured.

Location: qml/components/NodeInformationPopup.qml:29 (head).

Details and suggested fix

The new Connections handler assigns a fresh nodeInformationRows() result to rows, which is the Repeater's model. Each assignment recreates all 15 row delegates and reformats the two tip timestamps, rather than updating only changed values. Block, header, peer, warning and network notifications can trigger this, as can every completed status read. The mailbox coalesces pending callbacks but does not impose a refresh interval while updates continue, such as during IBD. Expose a stable row model and emit dataChanged only for changed rows instead. Preserve translated labels and live updates, particularly the asynchronous information result that replaces the initial “Unknown” values after opening.


Link

[suggestion] · Asynchronous disconnect failures lose the explanatory message

An asynchronous disconnect failure now shows only a generic error, even when the selected peer has already disconnected.

Location: qml/models/nodemodel.cpp:948 (head).

Details and suggested fix

If the selected peer leaves between the list refresh and command execution, pinned Core's DisconnectNode(id) returns false because the ID is no longer present. Previously, the GUI explained that the peer may already be disconnected or the node state may have changed. Now finishPeerAction() supplies “Unable to disconnect peer.”, and the visible initiating page displays that string directly. The explanatory QML fallback remains only for synchronous submission rejection, so it does not cover this case. Use the existing explanatory text as NodeModel's disconnect failure message and share it with the synchronous rejection path. This improves failure feedback without changing backend acceptance; the frequency of departed-peer failures is unestablished.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.