Some minor fixes
continuous-integration/drone/push Build was killed Details

pull/39/head
Corentin LEMAIRE 2 years ago
parent 25a3f6963f
commit 5a9fb58663

@ -12,3 +12,4 @@
</ResourceDictionary>
</Application.Resources>
</Application>

@ -11,21 +11,16 @@ public partial class App : Application
public FooterPage FooterPage { get; set; }
public TimeSpan MusicPosition { get; set; } = TimeSpan.FromSeconds(0);
public TimeSpan MusicPosition { get; set; }
public MediaElementState MediaState { get; set; } = MediaElementState.Paused;
public MediaElementState MediaState { get; set; }
public App()
{
try
{
InitializeComponent();
}
catch (Exception ex)
{
Debug.WriteLine(ex);
}
Manager = new Manager(new LinqXmlSerialization(FileSystem.AppDataDirectory));
InitializeComponent();
MusicPosition = TimeSpan.FromSeconds(0);
MediaState = MediaElementState.Paused;
Manager = new Manager(new LinqXmlSerialization(FileSystem.Current.AppDataDirectory));
FooterPage = new FooterPage();
MainPage = new AppShell();
}

@ -29,6 +29,16 @@
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
<GenerateAppInstallerFile>True</GenerateAppInstallerFile>
<AppxPackageSigningEnabled>False</AppxPackageSigningEnabled>
<PackageCertificateThumbprint>D9EF0E98B2CABE92C87A46ACC4954059B92B6346</PackageCertificateThumbprint>
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
<AppxSymbolPackageEnabled>False</AppxSymbolPackageEnabled>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
<AppInstallerUri>D:\Bureau</AppInstallerUri>
<HoursBetweenUpdateChecks>24</HoursBetweenUpdateChecks>
<DefaultLanguage>fr</DefaultLanguage>
</PropertyGroup>
<ItemGroup>
@ -51,7 +61,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommunityToolkit.Maui.MediaElement" Version="1.0.2" />
<PackageReference Include="CommunityToolkit.Maui.MediaElement" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
</ItemGroup>
@ -78,6 +88,9 @@
<MauiXaml Update="AlbumPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="App.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="EditPlaylistPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
@ -93,6 +106,9 @@
<MauiXaml Update="LocalFilesPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="MainPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="PlaylistPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>

@ -8,7 +8,7 @@ namespace Linaris;
public partial class MainPage : ContentPage
{
private readonly ObservableCollection<Album> albums = (Application.Current as App).Manager.GetAlbums();
private readonly ObservableCollection<Album> albums;
public ObservableCollection<Album> Albums
{
@ -18,7 +18,8 @@ public partial class MainPage : ContentPage
public MainPage()
{
InitializeComponent();
BindingContext = this;
albums = (Application.Current as App).Manager.GetAlbums();
BindingContext = this;
}
async void GoToAlbum(object sender, EventArgs e)

@ -6,7 +6,7 @@
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap rescap">
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
<Identity Name="maui-package-name-placeholder" Publisher="CN=coren" Version="0.0.3.0" />
<mp:PhoneIdentity PhoneProductId="FAE74902-2FAE-40B1-9171-6989A858C6A6" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

@ -24,7 +24,7 @@ namespace Model
private string description = Manager.DEFAULT_DESC;
private List<Artist> feat = new List<Artist>();
private List<Artist> feat = new();
public IEnumerable<Artist> Feat
{

@ -349,7 +349,7 @@ namespace Model.Serialization
if (!File.Exists(XMLFILECUSTOMS))
{
XDocument CustomsFile2 = new XDocument();
XDocument CustomsFile2 = new();
var custom = customTitles.Select(c => new XElement("CustomTitle",
new XAttribute("Name", c.Name),
@ -367,7 +367,7 @@ namespace Model.Serialization
using TextWriter tw = File.CreateText(XMLFILECUSTOMS);
using XmlWriter writer = XmlWriter.Create(tw, settings);
CustomsFile2.Save(writer);
CustomsFile2.Save(writer);
}
XDocument CustomsFile = XDocument.Load(XMLFILECUSTOMS);

Loading…
Cancel
Save