From 84920fd65766f52867087ace32ac002793731096 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 24 Oct 2019 18:51:46 -0400 Subject: Mobile: change show/hide busy functions The old code was ill named - this way the busy spinner itself becomes reusable with a reasonable set of function names. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mobile-widgets/qml/main.qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index cd8635b63..17ae7ad7b 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -68,11 +68,19 @@ Kirigami.ApplicationWindow { function showBusy() { busy.running = true + } + + function showBusyAndDisconnectModel() { // this is used by QMLManager when operating the filter + busy.running = true diveList.diveListModel = null } function hideBusy() { busy.running = false + } + + function hideBusyAndConnectModel() { // this is used by QMLManager when done filtering + busy.running = false diveList.diveListModel = diveModel } -- cgit v1.2.3-70-g09d2