[vlc-commits] [Git][videolan/vlc][master] qml: set the cursor busy in `ServicesManage.qml` when the model is busy

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Apr 28 05:56:16 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
c15aaf90 by Fatih Uzunoglu at 2025-04-28T05:41:46+00:00
qml: set the cursor busy in `ServicesManage.qml` when the model is busy

Akin to 1d10b736.

- - - - -


1 changed file:

- modules/gui/qt/network/qml/ServicesManage.qml


Changes:

=====================================
modules/gui/qt/network/qml/ServicesManage.qml
=====================================
@@ -43,8 +43,21 @@ Widgets.ListViewExt {
         sortOrder: MainCtx.sort.order
         sortCriteria: MainCtx.sort.criteria
 
+        onLoadingChanged: {
+            // Adjust the cursor. Unless the loaded item (view) sets a cursor
+            // globally or for itself, this is going to be respected. It should
+            // be noted that cursor adjustment is conventionally not delayed,
+            // unlike indicators:
+            if (loading) {
+                MainCtx.setCursor(servicesView, Qt.BusyCursor)
+            } else {
+                MainCtx.unsetCursor(servicesView)
+            }
+        }
+
         Component.onCompleted: {
             discoveryModel.loadFromDefaultRepository()
+            loadingChanged() // make sure the handler is called
         }
     }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c15aaf90492025644e1b9b84e990ae23d179fe5a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c15aaf90492025644e1b9b84e990ae23d179fe5a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list