Skip to content

Only show Onboarding if settings file is missing#247

Merged
hebasto merged 1 commit into
bitcoin-core:mainfrom
johnny9:need-onboarding
Mar 2, 2023
Merged

Only show Onboarding if settings file is missing#247
hebasto merged 1 commit into
bitcoin-core:mainfrom
johnny9:need-onboarding

Conversation

@johnny9
Copy link
Copy Markdown
Collaborator

@johnny9 johnny9 commented Feb 5, 2023

Commit adds a context property that is used to determine if Onboarding flow is needed. If the user supplies a data directory or their settings.json file is missing, the property "needOnboarding" will be set to true.

Windows
Intel macOS
Apple Silicon macOS
ARM64 Android

Copy link
Copy Markdown
Contributor

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK!

Comment thread src/qml/bitcoin.cpp Outdated
Comment thread src/qml/bitcoin.cpp Outdated
@jarolrod jarolrod mentioned this pull request Feb 5, 2023
@johnny9
Copy link
Copy Markdown
Collaborator Author

johnny9 commented Feb 6, 2023

Update from 46b1904 to 27c38a9:

  • Check if datadir argument is not empty
  • Check if bitcoin.conf exists

@hebasto hebasto changed the title qml: only show Onboarding if settings file is missing Only show Onboarding if settings file is missing Feb 7, 2023
@hebasto
Copy link
Copy Markdown
Member

hebasto commented Feb 7, 2023

FWIW, the relevant Qt widget GUI logic is implemented in

bool Intro::showIfNeeded(bool& did_show_intro, int64_t& prune_MiB)

Copy link
Copy Markdown
Contributor

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 27c38a9

A follow-up can allow QSettings to override the default data dir, QSettings needs to be wired up first.

@hebasto hebasto merged commit 8c672b8 into bitcoin-core:main Mar 2, 2023
johnny9 pushed a commit to johnny9/bitcoin-core-app that referenced this pull request Jul 4, 2025
… is missing

81b9ce0 qml: only show Onboarding if settings/conf file is missing (johnny9)

Pull request description:

  Commit adds a context property that is used to determine if Onboarding flow is needed.  If the user supplies a data directory or their settings.json file is missing, the property "needOnboarding" will be set to true.

  [![Windows](https://img.shields.io/badge/OS-Windows-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/<PR>)
  [![Intel macOS](https://img.shields.io/badge/OS-Intel%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/<PR>)
  [![Apple Silicon macOS](https://img.shields.io/badge/OS-Apple%20Silicon%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/<PR>)
  [![ARM64 Android](https://img.shields.io/badge/OS-Android-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/<PR>)

ACKs for top commit:
  jarolrod:
    ACK 81b9ce0

Tree-SHA512: 80cd9e2cf07a4e107918353e0f98880fdfacc78e7348cc6ab1006b58858f0ca18aafc9315344e991da073ee42a9b1459f4d9c60da1b646516aa6370ef735cf18
tx-signer450 added a commit to tx-signer450/gui-qml that referenced this pull request Oct 20, 2025
… is missing

81b9ce01ce7b7d6a3d4a5d1e843e67cc124f58b0 qml: only show Onboarding if settings/conf file is missing (johnny9)

Pull request description:

  Commit adds a context property that is used to determine if Onboarding flow is needed.  If the user supplies a data directory or their settings.json file is missing, the property "needOnboarding" will be set to true.

  [![Windows](https://img.shields.io/badge/OS-Windows-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/<PR>)
  [![Intel macOS](https://img.shields.io/badge/OS-Intel%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/<PR>)
  [![Apple Silicon macOS](https://img.shields.io/badge/OS-Apple%20Silicon%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/<PR>)
  [![ARM64 Android](https://img.shields.io/badge/OS-Android-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/<PR>)

ACKs for top commit:
  jarolrod:
    ACK 81b9ce01ce7b7d6a3d4a5d1e843e67cc124f58b0

Tree-SHA512: 80cd9e2cf07a4e107918353e0f98880fdfacc78e7348cc6ab1006b58858f0ca18aafc9315344e991da073ee42a9b1459f4d9c60da1b646516aa6370ef735cf18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants