[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:
parent
c8de347a9d
commit
9924bce317
1 changed files with 5 additions and 0 deletions
|
@ -274,6 +274,11 @@ void Intro::setStatus(int status, const QString &message, quint64 bytesAvailable
|
||||||
{
|
{
|
||||||
freeString += " " + tr("(of %n GB needed)", "", requiredSpace);
|
freeString += " " + tr("(of %n GB needed)", "", requiredSpace);
|
||||||
ui->freeSpace->setStyleSheet("QLabel { color: #800000 }");
|
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 {
|
} else {
|
||||||
ui->freeSpace->setStyleSheet("");
|
ui->freeSpace->setStyleSheet("");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue