From 4f7127d1e3a51f0f55d42a08439c516dcc8d1a26 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 8 Dec 2019 23:28:50 +0200 Subject: 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). --- src/qt/intro.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qt/intro.h') 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; -- cgit v1.2.3