Skip to content

Commit af112ab

Browse files
committed
qt: Rename SetPrune() to InitializePruneSetting()
This function now resets the prune size and is only called after the intro sequence.
1 parent b0bfbe5 commit af112ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/qt/bitcoin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void BitcoinApplication::parameterSetup()
281281
m_node.initParameterInteraction();
282282
}
283283

284-
void BitcoinApplication::SetPrune(bool prune)
284+
void BitcoinApplication::InitializePruneSetting(bool prune)
285285
{
286286
// If prune is set, intentionally override existing prune size with
287287
// the default size since this is called when choosing a new datadir.
@@ -564,7 +564,7 @@ int GuiMain(int argc, char* argv[])
564564

565565
if (did_show_intro) {
566566
// Store intro dialog settings other than datadir (network specific)
567-
app.SetPrune(prune);
567+
app.InitializePruneSetting(prune);
568568
}
569569

570570
if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && !gArgs.GetBoolArg("-min", false))

src/qt/bitcoin.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class BitcoinApplication: public QApplication
6767
void parameterSetup();
6868
/// Create options model
6969
void createOptionsModel(bool resetSettings);
70-
/// Update prune value
71-
void SetPrune(bool prune);
70+
/// Initialize prune setting
71+
void InitializePruneSetting(bool prune);
7272
/// Create main window
7373
void createWindow(const NetworkStyle *networkStyle);
7474
/// Create splash screen

0 commit comments

Comments
 (0)