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).
This commit is contained in:
Hennadii Stepanov
2019-12-08 23:28:50 +02:00
parent 4824a7d36c
commit 4f7127d1e3
2 changed files with 26 additions and 11 deletions

View File

@@ -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;