Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
e4ccab12
Commit
e4ccab12
authored
Aug 13, 2018
by
Soomin Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PlaylistModel: Handle deletion callback
parent
84946309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
SharedSources/MediaLibraryModel/PlaylistModel.swift
SharedSources/MediaLibraryModel/PlaylistModel.swift
+10
-0
No files found.
SharedSources/MediaLibraryModel/PlaylistModel.swift
View file @
e4ccab12
...
...
@@ -41,4 +41,14 @@ extension PlaylistModel: MediaLibraryObserver {
playlists
.
forEach
({
append
(
$0
)
})
updateView
?()
}
func
medialibrary
(
_
medialibrary
:
VLCMediaLibraryManager
,
didDeletePlaylistsWithIds
playlistsIds
:
[
NSNumber
])
{
files
=
files
.
filter
()
{
for
id
in
playlistsIds
where
$0
.
identifier
()
==
id
.
int64Value
{
return
false
}
return
true
}
updateView
?()
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment