Custom Prune OptionButton#245
Merged
Merged
Conversation
7c3f94d to
7b4085d
Compare
Contributor
Author
Closed
johnny9
reviewed
Feb 14, 2023
| description: optionsModel.pruneSizeGB | ||
| onEditingFinished: optionsModel.pruneSizeGB = parseInt(text) | ||
| onEditingFinished: { | ||
| root.customStorage = true |
Collaborator
There was a problem hiding this comment.
I think custom storage should only be true if the values don't match the other two options.
Member
It has been merged. Rebase? |
7b4085d to
35e7eb6
Compare
Contributor
Author
Contributor
Author
|
@johnny9 will address |
35e7eb6 to
c85e334
Compare
Contributor
Author
c85e334 to
a8d8b34
Compare
Contributor
Author
Member
a8d8b34 to
e3856c0
Compare
Contributor
Author
Validates that the input for these settings is not less or larger than the allowed values. If so, displays an informational error text.
This allows for a new OptionButton to be shown in StorageOptions when the user has going into detailed settings during onboarding and chosen a custom prune target
e3856c0 to
88a38a1
Compare
Contributor
Author
This was referenced Mar 1, 2023
johnny9
approved these changes
Mar 3, 2023
johnny9
pushed a commit
to johnny9/bitcoin-core-app
that referenced
this pull request
Jul 4, 2025
7968ca9 qml: Introduce Storage OptionButton that represents custom prune target (jarolrod) 61b01e3 qml: expose currently loaded detailItem in InformationPage (jarolrod) 9c6a682 qml: move setting of default prune setting into StorageOptions (jarolrod) d05ea90 qml: Validate input for dbcache, threads, and prune target settings (jarolrod) a339e43 qml: Expose minimum and maximum valid dbcache values (Jarol Rodriguez) a895163 qml: Expose minimum and maximum valid Script Verif Threads values (Jarol Rodriguez) 357a9a5 qml: Allow to show an error text below Setting header text (jarolrod) 390db68 qml: Allow to specify subtext color (jarolrod) Pull request description: Based on bitcoin-core/gui-qml#257 to not conflict This introduces a new OptionButton in StorageOptions that represents a custom prune target option. This is shown only when the user has gone into detailed settings and chosen a custom prune target. Additionally, this moves the logic of setting the default prune value from SettingsStorage into StorageOptions. It is the easy storage option button shown during onboarding that should set this. With the original logic, when onboarding is not shown because the user has already gone through it, the app will set prune to 2 gb again. | light | dark | | ----- | ---- | | <img width="752" alt="Screen Shot 2023-02-01 at 10 30 36 PM" src="https://user-images.githubusercontent.com/23396902/216224800-6bda5263-2661-4eed-b550-7cdf94731408.png"> | <img width="752" alt="Screen Shot 2023-02-01 at 10 30 16 PM" src="https://user-images.githubusercontent.com/23396902/216224815-8cdc3f36-6493-4d80-afc8-c4c26ddb2b5c.png"> | [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/245) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/245) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/245) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/245) ACKs for top commit: johnny9: ACK 7968ca9 Tree-SHA512: 931f79d4950476e74ebd24d5c9389f364e84ef199e4407e225f11792422be7b0acf4c0abd3cf3feb4f0b03d9a6b9c96af947dc6709249bc4857f7c3da66e7b80
tx-signer450
added a commit
to tx-signer450/gui-qml
that referenced
this pull request
Oct 20, 2025
7968ca99b4489a0d55203b4e3ed36122dbf89fa9 qml: Introduce Storage OptionButton that represents custom prune target (jarolrod) 61b01e31c4810f8ef62997b3aeb1d717dad333ca qml: expose currently loaded detailItem in InformationPage (jarolrod) 9c6a682325ab2e04f54a74e1ffbd23dbf9152e7e qml: move setting of default prune setting into StorageOptions (jarolrod) d05ea90ae6994da08c911167778a8f487b9ca6ac qml: Validate input for dbcache, threads, and prune target settings (jarolrod) a339e4316193a1c7df017aec73565d4d4d2c29b1 qml: Expose minimum and maximum valid dbcache values (Jarol Rodriguez) a895163aaaaa6290f6387cded39c00980403acef qml: Expose minimum and maximum valid Script Verif Threads values (Jarol Rodriguez) 357a9a569b7551791d4320bffb27cd4d4b3266b0 qml: Allow to show an error text below Setting header text (jarolrod) 390db68fa5f496717f5e542d93ee4dc203c30891 qml: Allow to specify subtext color (jarolrod) Pull request description: Based on bitcoin-core/gui-qml#257 to not conflict This introduces a new OptionButton in StorageOptions that represents a custom prune target option. This is shown only when the user has gone into detailed settings and chosen a custom prune target. Additionally, this moves the logic of setting the default prune value from SettingsStorage into StorageOptions. It is the easy storage option button shown during onboarding that should set this. With the original logic, when onboarding is not shown because the user has already gone through it, the app will set prune to 2 gb again. | light | dark | | ----- | ---- | | <img width="752" alt="Screen Shot 2023-02-01 at 10 30 36 PM" src="https://user-images.githubusercontent.com/23396902/216224800-6bda5263-2661-4eed-b550-7cdf94731408.png"> | <img width="752" alt="Screen Shot 2023-02-01 at 10 30 16 PM" src="https://user-images.githubusercontent.com/23396902/216224815-8cdc3f36-6493-4d80-afc8-c4c26ddb2b5c.png"> | [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/245) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/245) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/245) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/245) ACKs for top commit: johnny9: ACK 7968ca99b4489a0d55203b4e3ed36122dbf89fa9 Tree-SHA512: 931f79d4950476e74ebd24d5c9389f364e84ef199e4407e225f11792422be7b0acf4c0abd3cf3feb4f0b03d9a6b9c96af947dc6709249bc4857f7c3da66e7b80
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Based on #257 to not conflict
This introduces a new OptionButton in StorageOptions that represents a custom prune target option. This is shown only when the user has gone into detailed settings and chosen a custom prune target.
Additionally, this moves the logic of setting the default prune value from SettingsStorage into StorageOptions. It is the easy storage option button shown during onboarding that should set this. With the original logic, when onboarding is not shown because the user has already gone through it, the app will set prune to 2 gb again.