From cc06645275f3515f941adb09a0d96e40b0af3e8d Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 19 Aug 2020 12:42:42 -0400 Subject: [PATCH] Add spinner when fetching homeservers list --- src/gui/Pages/AddAccount/ServerBrowser.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/gui/Pages/AddAccount/ServerBrowser.qml b/src/gui/Pages/AddAccount/ServerBrowser.qml index 1bcb8032..4e9fdc79 100644 --- a/src/gui/Pages/AddAccount/ServerBrowser.qml +++ b/src/gui/Pages/AddAccount/ServerBrowser.qml @@ -243,5 +243,18 @@ HBox { anchors.fill: parent 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 } } + } } }