diff --git a/Documentation/doxygen/Doxyfile b/Documentation/doxygen/Doxyfile index 1608c88..06b6b8e 100644 --- a/Documentation/doxygen/Doxyfile +++ b/Documentation/doxygen/Doxyfile @@ -5,7 +5,7 @@ DOXYFILE_ENCODING = UTF-8 PROJECT_NAME = "Linaris" PROJECT_NUMBER = 1.0.0 PROJECT_BRIEF = "Music player and manager" -PROJECT_LOGO = appicon.svg +PROJECT_LOGO = appicon.png OUTPUT_DIRECTORY = /docs/doxygen CREATE_SUBDIRS = NO ALLOW_UNICODE_NAMES = NO diff --git a/Documentation/doxygen/appicon.png b/Documentation/doxygen/appicon.png new file mode 100644 index 0000000..6d0b4f4 Binary files /dev/null and b/Documentation/doxygen/appicon.png differ diff --git a/Sources/Console/Console.csproj b/Sources/Console/Console.csproj index a816ead..b491ec4 100644 --- a/Sources/Console/Console.csproj +++ b/Sources/Console/Console.csproj @@ -13,10 +13,6 @@ - - - - diff --git a/Sources/Linaris/FooterPage.xaml.cs b/Sources/Linaris/FooterPage.xaml.cs index 35ec8da..24959bc 100644 --- a/Sources/Linaris/FooterPage.xaml.cs +++ b/Sources/Linaris/FooterPage.xaml.cs @@ -177,8 +177,7 @@ public partial class FooterPage : ContentView, INotifyPropertyChanged Manager.NextTitle(); Dispatcher.DispatchAsync(() => { - string encodedFilePath = Manager.CurrentPlaying.Path.Replace(" ", "\\ "); - music.Source = encodedFilePath; + music.Source = Manager.CurrentPlaying.Path; Duration = music.Duration.ToString(@"hh\:mm\:ss"); }); } diff --git a/Sources/Linaris/Linaris.csproj b/Sources/Linaris/Linaris.csproj index 5461e41..459ec0d 100644 --- a/Sources/Linaris/Linaris.csproj +++ b/Sources/Linaris/Linaris.csproj @@ -53,9 +53,6 @@ - - - diff --git a/Sources/Linaris/LocalFilesPage.xaml.cs b/Sources/Linaris/LocalFilesPage.xaml.cs index 5c8ea6c..de03277 100644 --- a/Sources/Linaris/LocalFilesPage.xaml.cs +++ b/Sources/Linaris/LocalFilesPage.xaml.cs @@ -1,5 +1,6 @@ using CommunityToolkit.Maui.Views; using Model; +using Model.Stub; using System.Collections.ObjectModel; using System.Diagnostics; @@ -87,11 +88,15 @@ public partial class LocalFilesPage : ContentPage return; } - if (sender is Button button) + foreach (var result in results) { - foreach (var result in results) + string path = Path.Combine(FileSystem.Current.AppDataDirectory, "customs"); + if (!Path.Exists(path)) Directory.CreateDirectory(path); + string fullPath = Path.Combine(path, result.FileName); + if (!File.Exists(fullPath)) { - CustomTitle custom = new (result.FileName, "none.png", "", result.FullPath); + File.Copy(result.FullPath, fullPath); + CustomTitle custom = new(result.FileName, "none.png", "", fullPath); if (!IsCustomTitleInCollection(custom)) { AddCustomTitle(custom); @@ -149,6 +154,7 @@ public partial class LocalFilesPage : ContentPage { (Application.Current as App).Manager.RemoveCustomTitle(titleToRemove); customTitles.Remove(titleToRemove); + File.Delete(titleToRemove.Path); } } } diff --git a/Sources/Linaris/PlaylistPage.xaml b/Sources/Linaris/PlaylistPage.xaml index 17ec576..2d01fb5 100644 --- a/Sources/Linaris/PlaylistPage.xaml +++ b/Sources/Linaris/PlaylistPage.xaml @@ -36,7 +36,7 @@ -