fixed issue where changing the playlist to the same playlist redid the navigation view stack animation

This commit is contained in:
liyaowhen
2024-07-29 13:18:54 -07:00
parent 77ad4a8101
commit 151fc5fb34
+2 -14
View File
@@ -100,21 +100,9 @@ namespace Song {
public void change_page(PlaylistObject playlist) {
print("change page called");
current_playlist = playlist;
if (current_playlist == playlist) return;
/*string[] songs = settings.get_strv(playlist_name);
print("\n playlist contains: \n" + songs[1]);
if (songs.length == 1) {
if (songs[0] == "") {empty_playlist_ui(playlist_name); return;}
else {
//
}
} else if (songs.length > 1) {
if (songs[1] != null) {
print("making a page with actual content");
playlist_ui(playlist_name);
}
}*/
current_playlist = playlist;
if (playlist.items.is_empty()) {
empty_playlist_ui(playlist);