[vlc-commits] [Git][videolan/vlc][master] qt: do not reload medialibrary each time going back from player view

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon May 8 07:31:44 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
cf244f6c by Fatih Uzunoglu at 2023-05-08T06:48:03+00:00
qt: do not reload medialibrary each time going back from player view

- - - - -


2 changed files:

- modules/gui/qt/maininterface/mainctx.cpp
- modules/gui/qt/maininterface/qml/MainDisplay.qml


Changes:

=====================================
modules/gui/qt/maininterface/mainctx.cpp
=====================================
@@ -199,6 +199,10 @@ MainCtx::MainCtx(qt_intf_t *_p_intf)
             THEDP->firstRunDialog();
         }, Qt::QueuedConnection);
     }
+    else if (m_medialib)
+    {
+        QMetaObject::invokeMethod(m_medialib, &MediaLib::reload, Qt::QueuedConnection);
+    }
 }
 
 MainCtx::~MainCtx()


=====================================
modules/gui/qt/maininterface/qml/MainDisplay.qml
=====================================
@@ -65,9 +65,6 @@ FocusScope {
 
     Component.onCompleted: {
         loadView()
-        if (MainCtx.mediaLibraryAvailable && !MainCtx.hasFirstrun)
-            // asynchronous call
-            MainCtx.mediaLibrary.reload()
     }
 
     function loadView() {



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cf244f6c6364d746ca56e6a4988fd8fcb6ab66cc
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