mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
Bugfix: GUI/Intro: Disable GUI prune option if -prune is set, regardless of set value
This commit is contained in:
parent
bbbf89a9de
commit
420a983e25
1 changed files with 2 additions and 2 deletions
|
@ -141,8 +141,8 @@ Intro::Intro(QWidget *parent, int64_t blockchain_size_gb, int64_t chain_state_si
|
|||
|
||||
const int min_prune_target_GB = std::ceil(MIN_DISK_SPACE_FOR_BLOCK_FILES / 1e9);
|
||||
ui->pruneGB->setRange(min_prune_target_GB, std::numeric_limits<int>::max());
|
||||
if (gArgs.GetIntArg("-prune", 0) > 1) { // -prune=1 means enabled, above that it's a size in MiB
|
||||
ui->prune->setChecked(true);
|
||||
if (gArgs.IsArgSet("-prune")) {
|
||||
ui->prune->setChecked(gArgs.GetIntArg("-prune", 0) >= 1);
|
||||
ui->prune->setEnabled(false);
|
||||
}
|
||||
ui->pruneGB->setValue(m_prune_target_gb);
|
||||
|
|
Loading…
Add table
Reference in a new issue