Skip to content

Conversation

@random-zebra
Copy link

The GUI tutorial screen (where the user selects the language and gets the first few "beginner tips") is supposed to be fired when the wallet.dat file is not found, before creating it for the first time.
In case of multiple wallets (using the wallet option in the config file, or as startup flag), the tutorial screen should not be fired if at least one wallet.dat already exists.

The check to decide whether or not to prompt the tutorial screen was broken in #2423.
The -wallet arguments can now represent paths to existing directories or symlinks (by default it is empty, representing the path relative to the datadir, i.e. the datadir itself).
It does not include the filename anymore (unless explicitly provided to -wallet).
Therefore the tutorial screen is never created on the first launch, as it should.

Also, we are using GetArg, which returns the last argument from command line (or first argument in conf file), and not checking all the files with GetArgs.

The `-wallet` arguments can now represent paths to existing directories
or symlinks (by default it is empty, representing the path relative to
the datadir, i.e. the datadir itself).
It does not include the *filename* (unless explicitely specified in
`-wallet`) anymore.
Therefore the tutorial screen is never created (even on fresh installs).

Also, we are using `GetArg`, which returns the last argument from
command line (or first argument in conf file), and not checking all the
files with `GetArgs`.
@random-zebra random-zebra added GUI Bug Wallet Startup Wallet startup changes and/or improvements labels Jul 23, 2021
@random-zebra random-zebra added this to the 6.0.0 milestone Jul 23, 2021
@random-zebra random-zebra self-assigned this Jul 23, 2021
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

nice catch 👌👌, ACK 8756130

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

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

utACK 8756130

@random-zebra random-zebra merged commit 5826769 into PIVX-Project:master Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug GUI Startup Wallet startup changes and/or improvements Wallet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants