tbh i don't even know what i did

This commit is contained in:
Royce551 2021-02-13 05:21:50 -06:00
parent 44a6906138
commit cc405555a4
7 changed files with 20 additions and 5 deletions

View file

@ -68,7 +68,7 @@ namespace FRESHMusicPlayer
{
var box = new CriticalErrorBox(e, logPath, fileName);
box.WindowStartupLocation = WindowStartupLocation.CenterScreen;
box.Show();
box.ShowDialog();
}
catch
{

View file

@ -291,6 +291,7 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.de.resx" />
<EmbeddedResource Include="Properties\Resources.nl.resx" />
<EmbeddedResource Include="Properties\Resources.pt.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.pt.Designer.cs</LastGenOutput>

View file

@ -416,6 +416,7 @@ namespace FRESHMusicPlayer
}
private void Player_SongException(object sender, PlaybackExceptionEventArgs e)
{
MessageBox.Show(Environment.CurrentDirectory);
NotificationHandler.Add(new Notification
{
ContentText = string.Format(Properties.Resources.MAINWINDOW_PLAYBACK_ERROR_DETAILS, e.Details),
@ -617,7 +618,7 @@ namespace FRESHMusicPlayer
break;
case Key.F2:
NotificationHandler.Add(new Notification { ContentText = Properties.Resources.APPLICATION_CRITICALERROR });
break;
throw new Exception("Exception for debugging");
case Key.F5:
ContentFrame.Refresh();
break;

View file

@ -12,7 +12,7 @@
<Grid Background="{StaticResource SecondaryColor}">
<ScrollViewer x:Name="LyricsScrollViewer" PanningMode="Both" Panel.ZIndex="1" VerticalAlignment="Center" Foreground="{x:Null}">
<TextBlock x:Name="LyricsBox" Foreground="{StaticResource PrimaryTextColor}" Text="Testing 1 2 3" TextAlignment="Center" TextWrapping="Wrap"/>
<TextBlock x:Name="LyricsBox" Foreground="{StaticResource PrimaryTextColor}" TextAlignment="Center" TextWrapping="Wrap"/>
</ScrollViewer>

View file

@ -57,6 +57,7 @@
<ComboBoxItem Content="Vietnamese"/>
<ComboBoxItem Content="Portuguese"/>
<ComboBoxItem Content="Turkish"/>
<ComboBoxItem Content="Dutch"/>
</ComboBox>
</Grid>
<CheckBox x:Name="General_TrackingCheck" Content="{x:Static resx:Resources.SETTINGS_PLAYBACKTRACKING}" FontSize="14" Foreground="{StaticResource PrimaryTextColor}" Checked="General_TrackingChanged" Unchecked="General_TrackingChanged"/>

View file

@ -52,6 +52,9 @@ namespace FRESHMusicPlayer.Pages
case "tr":
General_LanguageCombo.SelectedIndex = (int)LanguageCombo.Turkish;
break;
case "nl":
General_LanguageCombo.SelectedIndex = (int)LanguageCombo.Dutch;
break;
}
switch (App.Config.Theme)
{
@ -149,6 +152,9 @@ namespace FRESHMusicPlayer.Pages
case (int)LanguageCombo.Turkish:
App.Config.Language = "tr";
break;
case (int)LanguageCombo.Dutch:
App.Config.Language = "nl";
break;
}
SetAppRestartNeeded(App.Config.Language != workingConfig.Language);
}
@ -237,7 +243,8 @@ namespace FRESHMusicPlayer.Pages
German,
Vietnamese,
Portuguese,
Turkish
Turkish,
Dutch
}
public enum UpdateCombo
{

View file

@ -20,7 +20,12 @@
</requestedPrivileges>
</security>
</trustInfo>
<file name="CDLib.dll">
<activatableClass
name="CDLib.AudioCDPlayer"
threadingModel="sta"
xmlns="urn:schemas-microsoft-com:winrt.v1" />
</file>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on