another sanity check

This commit is contained in:
Erica Z 2024-11-10 15:57:03 +01:00
parent a0be95189b
commit 129281ea4a

View file

@ -368,7 +368,9 @@ mod imp {
} }
fn playlist_count(&self) -> i64 { fn playlist_count(&self) -> i64 {
self.mpv.get_property::<i64>("playlist-count").unwrap() let count = self.mpv.get_property::<i64>("playlist-count").unwrap();
assert_eq!(count as u32, self.playlist_model.n_items());
count
} }
fn song(&self) -> Option<Song> { fn song(&self) -> Option<Song> {