diff options
author | Jadi <jadijadi@gmail.com> | 2022-06-08 08:10:29 -0400 |
---|---|---|
committer | Jadi <jadijadi@gmail.com> | 2022-06-15 12:24:08 -0400 |
commit | 40566e21c02ddec6458cd83fa76fea081c5469dc (patch) | |
tree | a795925b215ed56e32c0964854d282a48530bd4d /src/qt | |
parent | b9416c3847cd347238a9d75d949327f69e187d79 (diff) | |
download | bitcoin-40566e21c02ddec6458cd83fa76fea081c5469dc.tar.xz |
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: https://github.com/bitcoin/bitcoin/issues/25052
Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/intro.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index f4928951fe..4c8b33bf28 100644 --- a/src/qt/intro.cpp +++ b/src/qt/intro.cpp @@ -287,7 +287,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.GetIntArg("-prune", 0) == 0)) { ui->prune->setChecked(m_bytes_available < (m_blockchain_size_gb + m_chain_state_size_gb + 10) * GB_BYTES); } UpdateFreeSpaceLabel(); |