MCPcopy Create free account
hub / github.com/ElementsProject/elements / SetPruneTargetGB

Method SetPruneTargetGB

src/qt/optionsmodel.cpp:298–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void OptionsModel::SetPruneTargetGB(int prune_target_gb, bool force)
299{
300 const bool prune = prune_target_gb > 0;
301 if (prune) {
302 QSettings settings;
303 settings.setValue("nPruneSize", prune_target_gb);
304 }
305 SetPruneEnabled(prune, force);
306}
307
308// read QSettings values and return them
309QVariant OptionsModel::data(const QModelIndex & index, int role) const

Callers 1

InitPruneSettingMethod · 0.80

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected