mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Only write options after onboarding #284
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!284
Loading…
Reference in a new issue
No description provided.
Delete branch "write_after_onboard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Needs rebase.
update from 45e3262 to 08be85b:
ACK 08be85b
I tested these on Ubuntu 22.04.2 and it does what it says on the tin.
Understood that we may need to buffer the settings writing to file in on-boarding; especially if the storage location is not set and may change.
Maybe we should do our best to save what we can of what the user configured?
Are there situations where we buffer settings and different settings that we save immediately?
Please rebase.
https://discord.com/channels/903125802726596648/903126039084015638/1146922061449666602
Update from 08be85b to 51df97d
Concept ACK
potentially, a bool indicating if we're onboarded or not could be valuable to other models. Since right now we don't have such a use case, this is fine.
tACK on WSL Ubuntu 22.04 on
signetWorks as expected, the settings file gets created after the onboarding has finished.
settings.json:
{ "listen": true, "natpmp": true, "prune": 2861 }Do we want the “Listen” and “natpmp” options to be true by default or was it just for testing this PR?
tACK on Android armv7 everything worked as expected
The
settings.jsonwas created after the onboarding with the following values:{ "prune": 2861 }ACK 51df97d142558919e9181696359debfb98e94b0c
Concept ACK, I'll test soon. It looks that there are some unaddressed feedback.
tACK 51df97d142558919e9181696359debfb98e94b0c
Tested in both
master(/main) and this PRs branch: changing all settings touched by this branch's code change and verify the changes were saved accordingly.Things I noticed during testing:
In
main:setting.jsonfile will look like:setting.jsonfile will look like:In branch
johnny9:write_after_onboard:setting.jsonfile will look like:setting.jsonfile will look like:After the user makes any changes on the settings mentioned above next time the user starts `bitcoin-qt` up again it looks like the UI doesn't match the configuration file (`settings.json`), is this expected?
main:Update 51df97d to 61f8e6c
@pablomartin4btc I wasn't able to reproduce the output you were seeing during onboarding but I think I fixed the settings not applying at next startup with initializing the values in the constructor.
tACK
github.com/bitcoin-core/gui-qml@61f8e6c5fcOn Ubuntu 22.04 and Android (armv7)
Works as expected, settings.json shows defaults:
tACK 61f8e6c5fcb0c6c31a6283c3b7fdf6b9f82eba5e
It behaves as expected.
dbcachesetting is not persisted anymore ("dbcache": 16000,), is this correct?It should only persist if you set it to a value other than nDefaultDbCache (450)
Perfect, it works.
Update from 61f8e6c to 4f557b0
Update from 4f557b0 to
9e56907tACK
9e569074a1lgtm, works as expected on both Ubuntu 22.04 and Android (armv7)
played around with different settings and they registered properly both in the settings.json and in the debug.log
re-ACK
9e569074a19e569074a1writing of the settings works, but it always additionally creates a
settings.json.bakfile?Do we need this?
It is needed for PruneMiBtoGB i believe
nit: accidentally removed the last line break?
already has a newline character at the end of the file. don't need an additional blank line.
re ACK
9e569074a1on Ubuntu 22.04 works as expected