Skip to content

Conversation

johnny9
Copy link
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
Member

@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!

@jarolrod jarolrod mentioned this pull request Feb 5, 2023
@johnny9
Copy link
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
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
Member

@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
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