gui: Add Intro::UpdateFreeSpaceLabel()

If a new custom datadir has enough free space, the prune checkbox gets
unchecked, unless -prune=NNN command-line option is provided.
This commit is contained in:
Hennadii Stepanov
2019-12-08 17:18:15 +02:00
parent daa3f3fa90
commit 4824a7d36c
2 changed files with 21 additions and 12 deletions

View File

@@ -71,11 +71,13 @@ private:
const int64_t m_chain_state_size_gb;
//! 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};
void startThread();
void checkPath(const QString &dataDir);
QString getPathToCheck();
void UpdatePruneLabels(int64_t prune_target_gb);
void UpdateFreeSpaceLabel();
friend class FreespaceChecker;
};