aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-04-08 17:39:03 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-04-08 17:39:03 -0500
commit8db58b42afb87e7a6024017f5ba7929b0a160bce (patch)
tree3b5ced6fea324c3f73be36017c1a2dcc806adec0
parent8d5690c8346497cdc71d18281b2ac9e02a532358 (diff)
parent6ca0713739e7dc08be838364b2ab493222793039 (diff)
downloadmonzero-gui-8db58b42afb87e7a6024017f5ba7929b0a160bce.tar.gz
monzero-gui-8db58b42afb87e7a6024017f5ba7929b0a160bce.tar.xz
monzero-gui-8db58b42afb87e7a6024017f5ba7929b0a160bce.zip
Merge pull request #1270
6ca0713 Fixes blockchain size warnings
-rw-r--r--main.qml5
-rw-r--r--pages/Settings.qml6
2 files changed, 6 insertions, 5 deletions
diff --git a/main.qml b/main.qml
index b481985c..61a20d0e 100644
--- a/main.qml
+++ b/main.qml
@@ -76,6 +76,7 @@ ApplicationWindow {
readonly property string localDaemonAddress : persistentSettings.nettype == NetworkType.MAINNET ? "localhost:18081" : persistentSettings.nettype == NetworkType.TESTNET ? "localhost:28081" : "localhost:38081"
property string currentDaemonAddress;
property bool startLocalNodeCancelled: false
+ property int estimatedBlockchainSize: 50 // GB
// true if wallet ever synchronized
property bool walletInitialized : false
@@ -1150,9 +1151,9 @@ ApplicationWindow {
if(validator.readOnly)
confirmationDialog.text += qsTr("Error: Filesystem is read only") + "\n\n"
if(validator.storageAvailable < 20)
- confirmationDialog.text += qsTr("Warning: There's only %1 GB available on the device. Blockchain requires ~%2 GB of data.").arg(validator.storageAvailable).arg(30) + "\n\n"
+ confirmationDialog.text += qsTr("Warning: There's only %1 GB available on the device. Blockchain requires ~%2 GB of data.").arg(validator.storageAvailable).arg(estimatedBlockchainSize) + "\n\n"
else
- confirmationDialog.text += qsTr("Note: There's %1 GB available on the device. Blockchain requires ~%2 GB of data.").arg(validator.storageAvailable).arg(30) + "\n\n"
+ confirmationDialog.text += qsTr("Note: There's %1 GB available on the device. Blockchain requires ~%2 GB of data.").arg(validator.storageAvailable).arg(estimatedBlockchainSize) + "\n\n"
if(!validator.lmdbExists)
confirmationDialog.text += qsTr("Note: lmdb folder not found. A new folder will be created.") + "\n\n"
diff --git a/pages/Settings.qml b/pages/Settings.qml
index aa7bf4eb..553ec9d6 100644
--- a/pages/Settings.qml
+++ b/pages/Settings.qml
@@ -748,10 +748,10 @@ Rectangle {
confirmationDialog.text += qsTr("Error: Filesystem is read only") + "\n\n"
}
- if(validator.storageAvailable < 20) {
- confirmationDialog.text += qsTr("Warning: There's only %1 GB available on the device. Blockchain requires ~%2 GB of data.").arg(validator.storageAvailable).arg(15) + "\n\n"
+ if(validator.storageAvailable < estimatedBlockchainSize) {
+ confirmationDialog.text += qsTr("Warning: There's only %1 GB available on the device. Blockchain requires ~%2 GB of data.").arg(validator.storageAvailable).arg(estimatedBlockchainSize) + "\n\n"
} else {
- confirmationDialog.text += qsTr("Note: There's %1 GB available on the device. Blockchain requires ~%2 GB of data.").arg(validator.storageAvailable).arg(15) + "\n\n"
+ confirmationDialog.text += qsTr("Note: There's %1 GB available on the device. Blockchain requires ~%2 GB of data.").arg(validator.storageAvailable).arg(estimatedBlockchainSize) + "\n\n"
}
if(!validator.lmdbExists) {