From a3886dac1392304e1259e4a85f1b9fbcd1598894 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 16 Apr 2020 14:43:01 +0200 Subject: v1.2.0: Added loading animation --- qml/pages/LeaderBoard.qml | 13 ++++++++++++- rpm/harbour-binaryfun.spec | 4 ++-- rpm/harbour-binaryfun.yaml | 4 ++-- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/qml/pages/LeaderBoard.qml b/qml/pages/LeaderBoard.qml index 39ca742..80b2943 100644 --- a/qml/pages/LeaderBoard.qml +++ b/qml/pages/LeaderBoard.qml @@ -40,12 +40,15 @@ Page { if (xhr.readyState === 4 && xhr.status === 200) { list.model = JSON.parse(xhr.responseText); internet.visible = false; + loading.running = false; } else if (xhr.readyState === 4) { - list.model = [] internet.visible = true; + loading.running = false; } } xhr.send() + list.model = []; + loading.running = true; } menu: ContextMenu { @@ -86,6 +89,14 @@ Page { visible: false } + BusyIndicator { + id: loading + size: BusyIndicatorSize.Large + anchors.horizontalCenter: parent.horizontalCenter + running: false + visible: running + } + SilicaListView { id: list clip: true diff --git a/rpm/harbour-binaryfun.spec b/rpm/harbour-binaryfun.spec index d2c1e04..0eb220d 100644 --- a/rpm/harbour-binaryfun.spec +++ b/rpm/harbour-binaryfun.spec @@ -13,8 +13,8 @@ Name: harbour-binaryfun %{!?qtc_make:%define qtc_make make} %{?qtc_builddir:%define _builddir %qtc_builddir} Summary: An awesome binary game -Version: 1.1.1 -Release: 2 +Version: 1.2.0 +Release: 1 Group: Qt/Qt License: MIT URL: https://openrepos.net/content/melvin/binary-fun diff --git a/rpm/harbour-binaryfun.yaml b/rpm/harbour-binaryfun.yaml index 1b6b356..d6b45be 100644 --- a/rpm/harbour-binaryfun.yaml +++ b/rpm/harbour-binaryfun.yaml @@ -1,7 +1,7 @@ Name: harbour-binaryfun Summary: An awesome binary game -Version: 1.1.1 -Release: 2 +Version: 1.2.0 +Release: 1 # The contents of the Group field should be one of the groups listed here: # https://github.com/mer-tools/spectacle/blob/master/data/GROUPS Group: Qt/Qt -- cgit v1.2.3