aboutsummaryrefslogtreecommitdiff
path: root/src/qt/intro.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-12-08 17:18:15 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-01-14 18:53:08 +0200
commit4824a7d36cf47e766865e0fefe952ec860eb82dd (patch)
tree7a50b61ceac14aef96a03c4a0a92bd7009649c2a /src/qt/intro.h
parentdaa3f3fa9071a229275dd6a1b8445237ddc3fa97 (diff)
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.
Diffstat (limited to 'src/qt/intro.h')
-rw-r--r--src/qt/intro.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/intro.h b/src/qt/intro.h
index b4fd390006..8375847cc0 100644
--- a/src/qt/intro.h
+++ b/src/qt/intro.h
@@ -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;
};