Skip to content

Commit 09a76e4

Browse files
committed
Merge #615: If -prune=0 is set, Uncheck Prune on Intro page
40566e2 If -prune=0 is set, Uncheck Prune on Intro page (Jadi) Pull request description: 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 ACKs for top commit: hebasto: re-ACK 40566e2 Tree-SHA512: d5e0b76a7d20ae806e61a416fd907650f15a744a5823d0f8b57a634cb099bb135199e69a787bd54ecde2cf84e95633f40ff407a722350f337b27de395a6e0f78
2 parents e16f644 + 40566e2 commit 09a76e4

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)