|
|
|
@ -107,6 +107,7 @@ public partial class LocalFilesPage : ContentPage
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
(Application.Current as App).Manager.SaveSerialization();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async void AddToPlaylist(object sender, EventArgs e)
|
|
|
|
@ -123,6 +124,7 @@ public partial class LocalFilesPage : ContentPage
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
playlist.AddTitle(customTitle);
|
|
|
|
|
(Application.Current as App).Manager.SaveSerialization();
|
|
|
|
|
ResetAll(sender, e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -133,7 +135,7 @@ public partial class LocalFilesPage : ContentPage
|
|
|
|
|
{
|
|
|
|
|
if (sender is Entry entry)
|
|
|
|
|
{
|
|
|
|
|
Playlist playlist = new Playlist(entry.Text, "", "none.png");
|
|
|
|
|
Playlist playlist = new(entry.Text, "", "none.png");
|
|
|
|
|
if (!IsInPlaylists(playlist))
|
|
|
|
|
{
|
|
|
|
|
(Application.Current as App).Manager.AddPlaylist(playlist);
|
|
|
|
@ -160,6 +162,7 @@ public partial class LocalFilesPage : ContentPage
|
|
|
|
|
customTitles.Remove(titleToRemove);
|
|
|
|
|
File.Delete(titleToRemove.Path);
|
|
|
|
|
(Application.Current as App).Manager.RemoveCustomTitleFromPlaylists(titleToRemove);
|
|
|
|
|
(Application.Current as App).Manager.SaveSerialization();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|