Review report

bitcoin-core/gui-qml: PR #981

2 minor findings · 1 suggestion

Findings

Link

[minor] · Signer-path errors lose their existing Spanish translations

Moving signer-path validation to a helper using QObject::tr changes the translation context, so the three existing Spanish error translations no longer match and the page falls back to English.

Location: qml/models/options_model.cpp:547 (head).

Details and suggested fix

The three filesystem validation errors previously used unqualified tr() inside OptionsQmlModel::externalSignerPathValidationError, giving them the OptionsQmlModel context. SignerPathError now uses QObject::tr, but qml/locale/bitcoin_qml_es.ts still contains these translations only under OptionsQmlModel. CMake compiles and embeds that catalogue, and startup installs it, so the context mismatch prevents lookup when a Spanish user enters a nonexistent, non-file or non-executable signer path. The helper supplies both the page's validation status and rejected-save errors. Preserve the existing context with QCoreApplication::translate("OptionsQmlModel", ...).


Link

[minor] · Settings saves disable unrelated wallet, console and debug-log pages

A pending options save disables the shared page container, so unrelated wallet, RPC-console and debug-log controls cannot be used until the worker finishes.

Location: qml/components/SettingsView.qml:287 (head).

Details and suggested fix

The new enabled binding applies to SettingsPageContainer, which parents every section stack, including wallet password, sign/verify, coins, address-list, RPC-console and debug-log pages. The sidebar remains enabled, so a user can save an option and navigate to the console, but its controls still inherit the disabled state. settingsPending spans persistence, any NAT-PMP mapPort call and the subsequent snapshot read. An initial snapshot exception would also leave settingsReady false with no retry, disabling these pages for the session, although no realistic production trigger for that exception was identified. Restrict the ready/pending gate to option-backed pages or controls while retaining their editability restrictions, and provide a retry for initial-load errors. Extend the QML test to assert that an independent page remains enabled while options are pending; it currently asserts only that the shared container becomes disabled.


Optional improvements

Link

[suggestion] · Pending signer-path validation is presented as a valid path

While asynchronous signer-path validation is pending, clearing signerPathError lets the page report the previously detected signer as connected for the unvalidated input.

Location: qml/pages/settings/ExternalSignerSettingsPage.qml:20 (head).

Details and suggested fix

onTextChanged requests validation, which clears m_signer_validation_error, sets m_signer_validation_pending and emits the change signal before the worker answers. The page treats that empty error as success without reading signerPathValidationPending. With a previously detected device, entering an invalid filesystem path can therefore retain the connected status and “Detected external signer” text until validation completes; Check device also remains eligible during this interval. The save command independently revalidates before persistence, and a save error suppresses deferred device discovery, so this does not establish unintended signing or persistence of a rejected path. Include the pending property in the connected status, status text and Check device eligibility, showing a “Checking…” state until validation of the current input completes.


Coverage details