switch to Avalonia MessageBox
This commit is contained in:
parent
af16659f97
commit
540c80f292
@ -52,6 +52,7 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Avalonia" Version="11.2.0" />
|
||||
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.2.0" />
|
||||
<PackageReference Include="MessageBox.Avalonia" Version="3.2.0" />
|
||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
|
||||
<PackageReference Include="System.Drawing.Common" Version="8.0.10" />
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user