[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.
This commit is contained in:
Sjors Provoost 2019-08-24 19:58:24 +02:00
parent c8de347a9d
commit 9924bce317
No known key found for this signature in database
GPG key ID: 57FF9BDBCC301009

View file

@ -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("");
}