1 minor finding · 2 suggestions
Earlier concerns neither republished nor resolved: 2 minor findings. See the Run archive for their assessments.
Findings
[minor] · A new onboarding directory temporarily shows the previous directory's error
After a failed preview, selecting another custom directory displays the previous error against the new path and hides the storage-checking message until the new preview completes.
Location: qml/models/onboardingoptionsmodel.cpp:161 (head).
Details and suggested fix
setDataDir() replaces m_data_dir and emits dataDirChanged before starting the new preview. The StorageLocations handler immediately calls validateCustomDataDir(dataDir), which now returns the retained m_preview_error because the supplied path matches the newly assigned selection. This overwrites the folder dialog's local error clear with the previous directory's failure. The nonempty error also hides "Checking available storage...". dataDirSelectionFinished eventually corrects the feedback, and pending validation still prevents finishing. The base validated the supplied path instead of reusing this cached error. Clear m_preview_error when changing the selection, before emitting dataDirChanged. Checking pending alone would not fix the ordering because refreshPreview() sets pending after that signal.
Optional improvements
[suggestion] · The onboarding shutdown contract has no production caller
The new explicit onboarding shutdown state machine is exercised only by tests, while the production owner resets the model directly.
Location: qml/models/onboardingoptionsmodel.cpp:69 (head).
Details and suggested fix
No production caller uses OnboardingOptionsModel::beginShutdown() or observes shutdownFinished, and the method is not exposed to QML. PreInitOnboardingContext::close() resets the model directly; production preparation instead waits for nodePrepared, which finishNodePreparation() already emits after the executor drains. The after-shutdown preparation rejection and shutdown-observer deletion ordering therefore add lifecycle branches and regression tests without serving the current owner. This does not establish a production cleanup failure: the direct destruction path relies on executor destruction and the global worker drain. Remove the unused shutdown-only API, branches and tests while retaining the drain-before-nodePrepared behavior and its coverage, and describe that production guarantee rather than the unused notification protocol.
[suggestion] · The initial language snapshot repeats QML translation work
When the initial snapshot matches a nonempty startup language, it still reinstalls translators and retranslates the engine.
Location: qml/bitcoin.cpp:851 (head).
Details and suggested fix
Startup already installs startup_language, but OptionsQmlModel::m_language starts empty. Applying a nonempty initial snapshot therefore emits languageChanged, whose handler unconditionally reinstalls translators and calls engine->retranslate(), even when the installed language is unchanged. The new asynchronous initialization adds this initial retranslate; the base installed the resolved model language before loading the main QML. Track the installed language and reconcile it on both languageChanged and first settings readiness, performing translation work only when the resolved language differs. Do not suppress every initial notification: settings.json or bitcoin.conf can legitimately select a different language. Readiness reconciliation also covers explicit empty -lang=, which resolves to System default without changing the initially empty model property. The performance cost was not measured.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [minor]: An empty -lang leaves the saved startup translation installed (earlier report)
- [minor]: Blocksonly startup temporarily exposes the Mempool settings section (earlier report)