merge bitcoin-core/gui#615: If -prune=0 is set, Uncheck Prune on Intro page

This commit is contained in:
Kittywhiskers Van Gogh 2024-10-24 09:57:57 +00:00
parent 3d5aca6a0b
commit 1a2c02a42d
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -293,7 +293,7 @@ void Intro::setStatus(int status, const QString &message, quint64 bytesAvailable
ui->freeSpace->setText("");
} else {
m_bytes_available = bytesAvailable;
if (ui->prune->isEnabled()) {
if (ui->prune->isEnabled() && !(gArgs.IsArgSet("-prune") && gArgs.GetArg("-prune", 0) == 0)) {
ui->prune->setChecked(m_bytes_available < (m_blockchain_size_gb + m_chain_state_size_gb + 10) * GB_BYTES);
}
UpdateFreeSpaceLabel();