Add spinner when fetching homeservers list

This commit is contained in:
miruka 2020-08-19 12:42:42 -04:00
parent 4f1b007e6f
commit cc06645275

View File

@ -243,5 +243,18 @@ HBox {
anchors.fill: parent anchors.fill: parent
color: theme.colors.strongBackground color: theme.colors.strongBackground
} }
HLoader {
id: busyIndicatorLoader
anchors.centerIn: parent
width: 96 * theme.uiScale
height: width
source: "../../Base/HBusyIndicator.qml"
active: box.fetchServersFuture
opacity: active ? 1 : 0
Behavior on opacity { HNumberAnimation { factor: 2 } }
}
} }
} }