switch to Avalonia MessageBox
This commit is contained in:
parent
af16659f97
commit
540c80f292
@ -52,6 +52,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Avalonia" Version="11.2.0" />
|
<PackageReference Include="Avalonia" Version="11.2.0" />
|
||||||
<PackageReference Include="Avalonia.Controls.DataGrid" 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="Microsoft.CSharp" Version="4.7.0" />
|
||||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
|
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
|
||||||
<PackageReference Include="System.Drawing.Common" Version="8.0.10" />
|
<PackageReference Include="System.Drawing.Common" Version="8.0.10" />
|
||||||
|
@ -391,7 +391,9 @@ public partial class MainWindow : Window {
|
|||||||
try {
|
try {
|
||||||
Config.SaveGlobal();
|
Config.SaveGlobal();
|
||||||
} catch (Exception error) {
|
} 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 {
|
try {
|
||||||
chunks = discord.SplitLog(DiscordLog.Text);
|
chunks = discord.SplitLog(DiscordLog.Text);
|
||||||
} catch (Exception) {
|
} catch (Exception) {
|
||||||
MessageBox.Show(
|
var box = MessageBoxManager
|
||||||
"The log could not be split into discord appropriate length.\n" +
|
.GetMessageBoxStandard(
|
||||||
"This happens with the bigger logs formats if you do lots of things in one system.\n" +
|
"The log could not be split into discord appropriate length.\n" +
|
||||||
"Try posting the log in the OneLine format.",
|
"This happens with the bigger logs formats if you do lots of things in one system.\n" +
|
||||||
"Sorry!", MessageBoxButton.OK, MessageBoxImage.Error
|
"Try posting the log in the OneLine format.",
|
||||||
);
|
"Sorry!"
|
||||||
|
);
|
||||||
|
box.Show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user