[gui] intro: add prune preference

Adds a checkbox to the introduction screen letting the user enable pruning from the start.
Disable checkbox when launched with -prune
This commit is contained in:
Sjors Provoost
2019-08-24 19:13:04 +02:00
parent 1bbc49d207
commit c8de347a9d
4 changed files with 28 additions and 3 deletions

View File

@@ -39,6 +39,7 @@ public:
/**
* Determine data directory. Let the user choose if the current one doesn't exist.
* Let the user configure additional preferences such as pruning.
*
* @returns true if a data directory was selected, false if the user cancelled the selection
* dialog.
@@ -46,7 +47,7 @@ public:
* @note do NOT call global GetDataDir() before calling this function, this
* will cause the wrong path to be cached.
*/
static bool showIfNeeded(interfaces::Node& node, bool& did_show_intro);
static bool showIfNeeded(interfaces::Node& node, bool& did_show_intro, bool& prune);
Q_SIGNALS:
void requestCheck();