Onboarding storage: replace placeholder custom data directory wiring #596

Closed
opened 2026-05-06 08:54:55 +00:00 by johnny9 · 1 comment
johnny9 commented 2026-05-06 08:54:55 +00:00 (Migrated from github.com)

Code Gap

qml/components/StorageLocations.qml exposes a custom storage directory option during onboarding. It calls OptionsQmlModel::setCustomDataDirArgs(), but qml/models/options_model.cpp still has a TODO and only updates QML model state:

// TODO: add actual custom data wiring
qDebug() << "PlaceHolder: Created data directory: " << path;

This means the UI can imply that a custom data directory is configured even though the underlying node startup arguments/settings are not fully wired.

Work Needed

  • Replace the placeholder implementation with real data-directory configuration before node startup.
  • Validate the selected directory and surface errors in the onboarding UI.
  • Ensure the selected custom directory is used when the node starts.
  • Persist/display the selected data directory consistently after onboarding.
  • Add tests for default directory, custom directory, cancel, invalid path, and restart/startup behavior.
<!-- migrated-from: https://github.com/johnny9/BitcoinCoreAppDevelopment/issues/54 --> ## Code Gap `qml/components/StorageLocations.qml` exposes a custom storage directory option during onboarding. It calls `OptionsQmlModel::setCustomDataDirArgs()`, but `qml/models/options_model.cpp` still has a TODO and only updates QML model state: ```cpp // TODO: add actual custom data wiring qDebug() << "PlaceHolder: Created data directory: " << path; ``` This means the UI can imply that a custom data directory is configured even though the underlying node startup arguments/settings are not fully wired. ## Work Needed - Replace the placeholder implementation with real data-directory configuration before node startup. - Validate the selected directory and surface errors in the onboarding UI. - Ensure the selected custom directory is used when the node starts. - Persist/display the selected data directory consistently after onboarding. - Add tests for default directory, custom directory, cancel, invalid path, and restart/startup behavior.
jarolrod commented 2026-06-01 16:57:54 +00:00 (Migrated from github.com)

I’m working on changes that address this issue in a settings/onboarding QML branch. I plan to submit the PR soon and will link it here once it’s open.

I’m working on changes that address this issue in a settings/onboarding QML branch. I plan to submit the PR soon and will link it here once it’s open.
Sign in to join this conversation.
No description provided.