mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-28 18:01:27 +02:00
qt: Rename SetPrune() to InitializePruneSetting()
This function now resets the prune size and is only called after the intro sequence.
This commit is contained in:
parent
b0bfbe5028
commit
af112ab628
@ -281,7 +281,7 @@ void BitcoinApplication::parameterSetup()
|
|||||||
m_node.initParameterInteraction();
|
m_node.initParameterInteraction();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcoinApplication::SetPrune(bool prune)
|
void BitcoinApplication::InitializePruneSetting(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.
|
||||||
@ -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);
|
app.InitializePruneSetting(prune);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && !gArgs.GetBoolArg("-min", false))
|
if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && !gArgs.GetBoolArg("-min", false))
|
||||||
|
@ -67,8 +67,8 @@ public:
|
|||||||
void parameterSetup();
|
void parameterSetup();
|
||||||
/// Create options model
|
/// Create options model
|
||||||
void createOptionsModel(bool resetSettings);
|
void createOptionsModel(bool resetSettings);
|
||||||
/// Update prune value
|
/// Initialize prune setting
|
||||||
void SetPrune(bool prune);
|
void InitializePruneSetting(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…
x
Reference in New Issue
Block a user