fix(qt): provide correct data into intro dlg (#5348)

## Issue being fixed or feature implemented
we failed to backport 13216 correctly in #4359

noticed this while reviewing/testing #5255 

## What was done?
fix it

## How Has This Been Tested?
run qt with `-resetguisetting` and check info with and without the patch
on testnet for example (or tweak regtest params and test there)

## Breaking Changes
n/a

## Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e
tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone _(for repository
code-owners and collaborators only)_
This commit is contained in:
UdjinM6 2023-04-26 07:47:05 +03:00 committed by GitHub
parent e697554c68
commit 6c5d6c1a5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,7 +208,7 @@ bool Intro::showIfNeeded(interfaces::Node& node, bool& did_show_intro, bool& pru
} }
/* Let the user choose one */ /* Let the user choose one */
Intro intro(0, node.getAssumedChainStateSize(), node.getAssumedChainStateSize()); Intro intro(0, node.getAssumedBlockchainSize(), node.getAssumedChainStateSize());
GUIUtil::disableMacFocusRect(&intro); GUIUtil::disableMacFocusRect(&intro);
GUIUtil::loadStyleSheet(true); GUIUtil::loadStyleSheet(true);
intro.setDataDirectory(dataDirDefaultCurrent); intro.setDataDirectory(dataDirDefaultCurrent);