mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
eea1ff6a83
commit
904539024e
4 changed files with 27 additions and 24 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue