diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2019-08-24 19:58:24 +0200 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2019-08-24 22:41:32 +0200 |
commit | 9924bce317b96ab0c57efb99330abd11b6f16b9a (patch) | |
tree | 855998251fae2455e57b245b6f83f37094ef550b /src/qt/intro.cpp | |
parent | c8de347a9d6c88fe67d77aba6fcce1b7fd66791c (diff) |
[gui] intro: enable pruning by default unless disk is big
Color the text "GB needed for full chain" orange for nodes that barely have enough space.
Diffstat (limited to 'src/qt/intro.cpp')
-rw-r--r-- | src/qt/intro.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index 0079cbc4f4..9e05c63aa0 100644 --- a/src/qt/intro.cpp +++ b/src/qt/intro.cpp @@ -274,6 +274,11 @@ void Intro::setStatus(int status, const QString &message, quint64 bytesAvailable { freeString += " " + tr("(of %n GB needed)", "", requiredSpace); ui->freeSpace->setStyleSheet("QLabel { color: #800000 }"); + ui->prune->setChecked(true); + } else if (bytesAvailable / GB_BYTES - requiredSpace < 10) { + freeString += " " + tr("(%n GB needed for full chain)", "", requiredSpace); + ui->freeSpace->setStyleSheet("QLabel { color: #999900 }"); + ui->prune->setChecked(true); } else { ui->freeSpace->setStyleSheet(""); } |