qt - Persist "mask values" in gui
fixes https://github.com/bitcoin-core/gui/issues/652
Need to add an option inside the
OptionsModeland usesetOptionto store/update it. Not call directly the backend function, it breaks the layers division.
Thanks for the important note. I'm traveling this week with limited access to my dev machine / internet but will try to provide a fix per your suggestion soon. Thanks again.
Need to add an option inside the
OptionsModeland usesetOptionto store/update it. Not call directly the backend function, it breaks the layers division.
Also, instead of using Node::getPersistentSetting and Node::updateRwSetting methods, this should probably use QSettings::value and QSettings::setValue methods to access the setting. If you look at OptionsModel you can see that it uses QSettings to store GUI preferences. The Node methods are only used to store settings which are bitcoind command line or configuration file options (and -privacy is not a bitcoind option).
tested ACK
Thanks for the tests & ACK. I've done some changes based on the comments from @ryanofsky and @furszy . Can you please have another look? Thank you in advance.
Need to add an option inside the
OptionsModeland usesetOptionto store/update it. Not call directly the backend function, it breaks the layers division.Also, instead of using
Node::getPersistentSettingandNode::updateRwSettingmethods, this should probably useQSettings::valueandQSettings::setValuemethods to access the setting. If you look atOptionsModelyou can see that it usesQSettingsto store GUI preferences. TheNodemethods are only used to store settings which arebitcoindcommand line or configuration file options (and-privacyis not abitcoindoption).
thanks @ryanofsky & @furszy . I've updated the PR based your comment; via OptionsModel.
It looks like #701 is being actively reviewed recently. Let's combine all discussions there.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviews
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | hernanmarino |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.