Skip to content

Commit f4b0c0c

Browse files
jadijadihebasto
andauthored
Update src/qt/intro.cpp
Co-authored-by: Hennadii Stepanov <[email protected]>
1 parent 329c966 commit f4b0c0c

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() && gArgs.GetIntArg("-prune", -1) != 0) { // prune checkbox is enabled and not manually set to 0
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)