Make accessingCloud an integer so it can convey more information

This will be used to simulate a progress bar eventually.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-03 19:00:49 -05:00
parent eea1ff6a83
commit 904539024e
4 changed files with 27 additions and 24 deletions

View file

@ -24,7 +24,7 @@ Item {
width: subsurfaceTheme.columnWidth - 2 * Kirigami.Units.gridUnit
onVisibleChanged: {
if (visible && !manager.accessingCloud) {
if (visible && manager.accessingCloud < 0) {
manager.appendTextToLog("Credential scrn: show kbd was: " + (Qt.inputMethod.isVisible ? "visible" : "invisible"))
Qt.inputMethod.show()
login.forceActiveFocus()

View file

@ -21,8 +21,8 @@ Kirigami.ApplicationWindow {
property QtObject notification: null
property bool showingDiveList: false
onAccessingCloudChanged: {
if (accessingCloud) {
showPassiveNotification("Accessing Subsurface Cloud Storage", 500000);
if (accessingCloud >= 0) {
showPassiveNotification("Accessing Subsurface Cloud Storage " + accessingCloud +"%", 500000);
} else {
hidePassiveNotification();
}