[vlc-commits] [Git][videolan/vlc][master] macosx: Stop dumping library cache if sort criteria hasn't changed
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Jul 24 09:01:14 UTC 2022
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
c9b193a3 by Claudio Cambra at 2022-07-24T08:44:36+00:00
macosx: Stop dumping library cache if sort criteria hasn't changed
Signed-off-by: Claudio Cambra <claudio.cambra at gmail.com>
- - - - -
1 changed file:
- modules/gui/macosx/library/VLCLibraryModel.m
Changes:
=====================================
modules/gui/macosx/library/VLCLibraryModel.m
=====================================
@@ -462,6 +462,10 @@ static void libraryCallback(void *p_data, const vlc_ml_event_t *p_event)
- (void)sortByCriteria:(enum vlc_ml_sorting_criteria_t)sortCriteria andDescending:(bool)descending
{
+ if(sortCriteria == _sortCriteria && descending == _sortDescending) {
+ return;
+ }
+
_sortCriteria = sortCriteria;
_sortDescending = descending;
[self dropCaches];
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c9b193a381e05e7bcd06121340f776115824abad
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c9b193a381e05e7bcd06121340f776115824abad
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