mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
refactor: Drop `bool force' parameter
This commit is contained in:
parent
68c9bbe9bc
commit
b0bfbe5028
2 changed files with 4 additions and 4 deletions
|
|
@ -281,11 +281,11 @@ void BitcoinApplication::parameterSetup()
|
||||||
m_node.initParameterInteraction();
|
m_node.initParameterInteraction();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcoinApplication::SetPrune(bool prune, bool force)
|
void BitcoinApplication::SetPrune(bool prune)
|
||||||
{
|
{
|
||||||
// If prune is set, intentionally override existing prune size with
|
// If prune is set, intentionally override existing prune size with
|
||||||
// the default size since this is called when choosing a new datadir.
|
// the default size since this is called when choosing a new datadir.
|
||||||
optionsModel->SetPruneTargetGB(prune ? DEFAULT_PRUNE_TARGET_GB : 0, force);
|
optionsModel->SetPruneTargetGB(prune ? DEFAULT_PRUNE_TARGET_GB : 0, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcoinApplication::requestInitialize()
|
void BitcoinApplication::requestInitialize()
|
||||||
|
|
@ -564,7 +564,7 @@ int GuiMain(int argc, char* argv[])
|
||||||
|
|
||||||
if (did_show_intro) {
|
if (did_show_intro) {
|
||||||
// Store intro dialog settings other than datadir (network specific)
|
// Store intro dialog settings other than datadir (network specific)
|
||||||
app.SetPrune(prune, true);
|
app.SetPrune(prune);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && !gArgs.GetBoolArg("-min", false))
|
if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && !gArgs.GetBoolArg("-min", false))
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ public:
|
||||||
/// Create options model
|
/// Create options model
|
||||||
void createOptionsModel(bool resetSettings);
|
void createOptionsModel(bool resetSettings);
|
||||||
/// Update prune value
|
/// Update prune value
|
||||||
void SetPrune(bool prune, bool force = false);
|
void SetPrune(bool prune);
|
||||||
/// Create main window
|
/// Create main window
|
||||||
void createWindow(const NetworkStyle *networkStyle);
|
void createWindow(const NetworkStyle *networkStyle);
|
||||||
/// Create splash screen
|
/// Create splash screen
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue