Skip to content

Commit

Permalink
merge bitcoin-core/gui#615: If -prune=0 is set, Uncheck Prune on Intr…
Browse files Browse the repository at this point in the history
…o page
  • Loading branch information
kwvg committed Oct 25, 2024
1 parent 3d5aca6 commit 1a2c02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/intro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1a2c02a

Please sign in to comment.