Skip to content

Commit 40566e2

Browse files
jadijadihebasto
andcommitted
If -prune=0 is set, Uncheck Prune on Intro page
If the bitcoin-qt is started with -prune=0 arg, On the Intro page, the Prune Checkbox will be unchecked too, to prevent confusions. refs: bitcoin/bitcoin#25052 Co-authored-by: Hennadii Stepanov <[email protected]>
1 parent b9416c3 commit 40566e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/intro.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ void Intro::setStatus(int status, const QString &message, quint64 bytesAvailable
287287
ui->freeSpace->setText("");
288288
} else {
289289
m_bytes_available = bytesAvailable;
290-
if (ui->prune->isEnabled()) {
290+
if (ui->prune->isEnabled() && !(gArgs.IsArgSet("-prune") && gArgs.GetIntArg("-prune", 0) == 0)) {
291291
ui->prune->setChecked(m_bytes_available < (m_blockchain_size_gb + m_chain_state_size_gb + 10) * GB_BYTES);
292292
}
293293
UpdateFreeSpaceLabel();

0 commit comments

Comments
 (0)