diff --git a/Avalonia.EliteBGS/EliteBGS.csproj b/Avalonia.EliteBGS/EliteBGS.csproj index 267b656..00c63ed 100644 --- a/Avalonia.EliteBGS/EliteBGS.csproj +++ b/Avalonia.EliteBGS/EliteBGS.csproj @@ -52,6 +52,7 @@ + diff --git a/Avalonia.EliteBGS/MainWindow.axaml.cs b/Avalonia.EliteBGS/MainWindow.axaml.cs index 5dbad89..f501d99 100644 --- a/Avalonia.EliteBGS/MainWindow.axaml.cs +++ b/Avalonia.EliteBGS/MainWindow.axaml.cs @@ -391,7 +391,9 @@ public partial class MainWindow : Window { try { Config.SaveGlobal(); } catch (Exception error) { - MessageBox.Show("There was an error saving your settings: " + error.Message); + var box = MessageBoxManager + .GetMessageBoxStandard("There was an error saving your settings" + error.Message); + box.Show(); } } @@ -667,12 +669,14 @@ public partial class MainWindow : Window { try { chunks = discord.SplitLog(DiscordLog.Text); } catch (Exception) { - MessageBox.Show( - "The log could not be split into discord appropriate length.\n" + - "This happens with the bigger logs formats if you do lots of things in one system.\n" + - "Try posting the log in the OneLine format.", - "Sorry!", MessageBoxButton.OK, MessageBoxImage.Error - ); + var box = MessageBoxManager + .GetMessageBoxStandard( + "The log could not be split into discord appropriate length.\n" + + "This happens with the bigger logs formats if you do lots of things in one system.\n" + + "Try posting the log in the OneLine format.", + "Sorry!" + ); + box.Show(); return; }