aboutsummaryrefslogtreecommitdiff
path: root/src/qt/intro.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-12-08 23:28:50 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-01-14 19:14:14 +0200
commit4f7127d1e3a51f0f55d42a08439c516dcc8d1a26 (patch)
tree47da20e9c1cc77f8d3d287f6b270bb255c516df3 /src/qt/intro.h
parent4824a7d36cf47e766865e0fefe952ec860eb82dd (diff)
gui: Make Intro consistent with prune checkbox
When prune checkbox is toggled, the related text labels and the amount of required space shown are updated (previously they were only updated when the data directory was updated).
Diffstat (limited to 'src/qt/intro.h')
-rw-r--r--src/qt/intro.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/intro.h b/src/qt/intro.h
index 8375847cc0..732393246e 100644
--- a/src/qt/intro.h
+++ b/src/qt/intro.h
@@ -72,11 +72,12 @@ private:
//! Total required space (in GB) depending on user choice (prune or not prune).
int64_t m_required_space_gb{0};
uint64_t m_bytes_available{0};
+ const int64_t m_prune_target_gb;
void startThread();
void checkPath(const QString &dataDir);
QString getPathToCheck();
- void UpdatePruneLabels(int64_t prune_target_gb);
+ void UpdatePruneLabels(bool prune_checked);
void UpdateFreeSpaceLabel();
friend class FreespaceChecker;