Skip to content

Commit

Permalink
Show Exception type as the title in ErrorContentDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
sabihoshi committed May 11, 2021
1 parent d7f6c85 commit 3a0f45c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GenshinLyreMidiPlayer.WPF/GenshinLyreMidiPlayer.WPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<UseWPF>true</UseWPF>
<StartupObject>GenshinLyreMidiPlayer.WPF.App</StartupObject>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Version>1.9.4</Version>
<Version>1.9.5</Version>
<ApplicationIcon>item_windsong_lyre.ico</ApplicationIcon>
<Nullable>enable</Nullable>
<RepositoryUrl>https://github.com/sabihoshi/GenshinLyreMidiPlayer</RepositoryUrl>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using Humanizer;
Expand All @@ -10,7 +10,7 @@ public class ErrorContentDialog : ContentDialog
{
public ErrorContentDialog(Exception e, IReadOnlyCollection<Enum>? options = null, string? closeText = null)
{
Title = e.Message;
Title = e.GetType();
Content = e;

PrimaryButtonText = options?.ElementAtOrDefault(0)?.Humanize();
Expand Down

0 comments on commit 3a0f45c

Please sign in to comment.