From 0bbc7d9f1c72e4a6b7ea63284f184fa03948aa6a Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Sun, 28 Jun 2020 01:02:17 +0100 Subject: [PATCH] Small improvement to terrasync download dialogue. Show number of errors separately, don't override status if there are a non-zero number of errors - this was unhelpful if we've managed to resume after errors. --- gui/dialogs/terrasync.xml | 52 +++++++++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 7 deletions(-) diff --git a/gui/dialogs/terrasync.xml b/gui/dialogs/terrasync.xml index 2267e43fb..b1f830ab5 100644 --- a/gui/dialogs/terrasync.xml +++ b/gui/dialogs/terrasync.xml @@ -17,10 +17,6 @@ var computeStatusText = func { if (!getprop('/sim/terrasync/active')) return "Automatic download inactive"; - var errCount = getprop('/sim/terrasync/error-count'); - if (errCount > 0) - return "Errors occurred during download"; - # we need to suggest some remedial action here! if (getprop('/sim/terrasync/stalled')) return "Downloading has stalled. Check your network connection and settings"; @@ -303,17 +299,31 @@ setprop("/sim/gui/dialogs/terrasync/display-mode", "0"); - 0 0 + + left + + true + + 0.7 + 0.7 + 0.7 + 1 + + + + + 0 + 1 2 left - 200 - Status: %s + /sim/gui/dialogs/terrasync/status true + right 0.7 0.7 @@ -405,6 +415,34 @@ setprop("/sim/gui/dialogs/terrasync/display-mode", "0"); 1 + + + left + 4 + 0 + + + 0.7 + 0.7 + 0.7 + 1 + + + + 4 + 1 + %s + /sim/terrasync/error-count + true + true + right + + 0.7 + 0.7 + 0.7 + 1 + +