aboutsummaryrefslogtreecommitdiff
path: root/src/qt/optionsmodel.h
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2019-08-24 22:31:14 +0200
committerSjors Provoost <sjors@sprovoost.nl>2019-08-24 22:36:11 +0200
commit1957103786f97135f35ababc97efa1b481865eb0 (patch)
tree35064141c2a91d0f4c2b63b6282854578ae8357c /src/qt/optionsmodel.h
parent1bccf6a52d7fc08d8f605cfb2edc3277ec299c72 (diff)
downloadbitcoin-1957103786f97135f35ababc97efa1b481865eb0.tar.xz
[gui] add explicit prune setter
This makes it possible to enable pruning after the OptionsModel has been initialized and reset.
Diffstat (limited to 'src/qt/optionsmodel.h')
-rw-r--r--src/qt/optionsmodel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/optionsmodel.h b/src/qt/optionsmodel.h
index 1af3a72b92..b1231b7c7d 100644
--- a/src/qt/optionsmodel.h
+++ b/src/qt/optionsmodel.h
@@ -77,6 +77,9 @@ public:
bool getCoinControlFeatures() const { return fCoinControlFeatures; }
const QString& getOverriddenByCommandLine() { return strOverriddenByCommandLine; }
+ /* Explicit setters */
+ void SetPrune(bool prune, bool force = false);
+
/* Restart flag helper */
void setRestartRequired(bool fRequired);
bool isRestartRequired() const;