diff options
| author | benevanoff <benjaminevanoff99@gmail.com> | 2021-04-05 18:56:19 -0500 |
|---|---|---|
| committer | benevanoff <benjaminevanoff99@gmail.com> | 2021-04-05 18:56:19 -0500 |
| commit | 6b0cb8dadba9db95517633c1b2f7220d049e470a (patch) | |
| tree | 5c88bc76e01bc2b12ba75d912345c02d21082dc5 /wizard | |
| parent | 1f0f21a8e5cb1b4d4e430149078b1b78edb5fa4f (diff) | |
| download | monzero-gui-6b0cb8dadba9db95517633c1b2f7220d049e470a.tar.gz monzero-gui-6b0cb8dadba9db95517633c1b2f7220d049e470a.tar.xz monzero-gui-6b0cb8dadba9db95517633c1b2f7220d049e470a.zip | |
support pruning of new databases
Diffstat (limited to 'wizard')
| -rw-r--r-- | wizard/WizardDaemonSettings.qml | 22 | ||||
| -rw-r--r-- | wizard/WizardModeSelection.qml | 2 |
2 files changed, 24 insertions, 0 deletions
diff --git a/wizard/WizardDaemonSettings.qml b/wizard/WizardDaemonSettings.qml index 3f1f2204..6fffba7c 100644 --- a/wizard/WizardDaemonSettings.qml +++ b/wizard/WizardDaemonSettings.qml @@ -94,6 +94,28 @@ ColumnLayout { } } + RowLayout { + id: pruningOptionRow + MoneroComponents.CheckBox { + id: pruneBlockchainCheckBox + checked: !existingDbWarning.visible ? persistentSettings.pruneBlockchain : false + enabled: !existingDbWarning.visible + onClicked: { + persistentSettings.pruneBlockchain = !persistentSettings.pruneBlockchain + this.checked = persistentSettings.pruneBlockchain + } + text: qsTr("Prune blockchain") + translationManager.emptyString + } + + Text { + id: existingDbWarning + text: "A blockchain database already exists here. Select a new location to start a pruned node" + visible: daemonManager ? daemonManager.checkLmdbExists(blockchainFolder.text) : false + color: MoneroComponents.Style.defaultFontColor + font.family: MoneroComponents.Style.fontRegular.name + } + } + ColumnLayout{ Layout.topMargin: 6 spacing: 0 diff --git a/wizard/WizardModeSelection.qml b/wizard/WizardModeSelection.qml index 39fac9a2..4d2fde53 100644 --- a/wizard/WizardModeSelection.qml +++ b/wizard/WizardModeSelection.qml @@ -119,6 +119,7 @@ Rectangle { onMenuClicked: { if(appWindow.persistentSettings.nettype == 0){ + appWindow.persistentSettings.pruneBlockchain = true; applyWalletMode(1, 'wizardModeBootstrap'); } } @@ -139,6 +140,7 @@ Rectangle { imageIcon: "qrc:///images/local-node-full.png" onMenuClicked: { + appWindow.persistentSettings.pruneBlockchain = false; // can be toggled on next page applyWalletMode(2, 'wizardHome'); } } |
