File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,10 @@ void OptionsDialog::setModel(OptionsModel *_model)
148
148
if (_model->isRestartRequired ())
149
149
showRestartWarning (true );
150
150
151
+ // Prune values are in GB to be consistent with intro.cpp
152
+ static constexpr uint64_t nMinDiskSpace = (MIN_DISK_SPACE_FOR_BLOCK_FILES / GB_BYTES) + (MIN_DISK_SPACE_FOR_BLOCK_FILES % GB_BYTES) ? 1 : 0 ;
153
+ ui->pruneSize ->setRange (nMinDiskSpace, _model->node ().getAssumedBlockchainSize ());
154
+
151
155
QString strLabel = _model->getOverriddenByCommandLine ();
152
156
if (strLabel.isEmpty ())
153
157
strLabel = tr (" none" );
@@ -158,10 +162,6 @@ void OptionsDialog::setModel(OptionsModel *_model)
158
162
mapper->toFirst ();
159
163
160
164
updateDefaultProxyNets ();
161
-
162
- // Prune values are in GB to be consistent with intro.cpp
163
- static constexpr uint64_t nMinDiskSpace = (MIN_DISK_SPACE_FOR_BLOCK_FILES / GB_BYTES) + (MIN_DISK_SPACE_FOR_BLOCK_FILES % GB_BYTES) ? 1 : 0 ;
164
- ui->pruneSize ->setRange (nMinDiskSpace, _model->node ().getAssumedBlockchainSize ());
165
165
}
166
166
167
167
/* warn when one of the following settings changes by user action (placed here so init via mapper doesn't trigger them) */
You can’t perform that action at this time.
0 commit comments