From 85378e3ca8b9765bd4f2df719b0950679ec414ac Mon Sep 17 00:00:00 2001 From: erinn Date: Wed, 11 Sep 2019 11:58:35 -0700 Subject: [PATCH] better group loading progress bar display --- qml/widgets/ContactRow.qml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/qml/widgets/ContactRow.qml b/qml/widgets/ContactRow.qml index de36fbdf..55b65c08 100644 --- a/qml/widgets/ContactRow.qml +++ b/qml/widgets/ContactRow.qml @@ -49,7 +49,7 @@ Item { // LOTS OF NESTING TO DEAL WITH QT WEIRDNESS, SORRY rightPadding: 10 //wrapMode: Text.WordWrap anchors.left: imgProfile.right - anchors.right: loadingProgress.left + anchors.right: loading ? loadingProgress.left : rectUnread.left anchors.verticalCenter: parent.verticalCenter font.pixelSize: 16 * gcd.themeScale font.italic: !trusted @@ -152,17 +152,7 @@ Item { // LOTS OF NESTING TO DEAL WITH QT WEIRDNESS, SORRY status = _status trusted = _trusted blocked = _blocked - loading = _loading - - - if (loading == true) { - loadingProgress.visible = true - loadingProgress.running = true - } else { - loadingProgress.visible = false - loadingProgress.running = false - } - + loadingProgress.visible = loadingProgress.running = loading = _loading } } }