fix message boxes

This commit is contained in:
Florian Stinglmayr 2024-11-08 09:16:22 +01:00
parent a3af0d43df
commit 582d663baa

View File

@ -398,8 +398,12 @@ public partial class MainWindow : Window {
Config.SaveGlobal();
} catch (Exception error) {
var box = MessageBoxManager
.GetMessageBoxStandard("There was an error saving your settings" + error.Message);
box.Show();
.GetMessageBoxStandard(
"Error",
"There was an error saving your settings" + error.Message
);
var result = box.ShowAsPopupAsync(this);
result.Wait();
}
}
@ -677,12 +681,13 @@ public partial class MainWindow : Window {
} catch (Exception) {
var box = MessageBoxManager
.GetMessageBoxStandard(
"Sorry!",
"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!"
"Try posting the log in the OneLine format. "
);
box.Show();
var result = box.ShowAsPopupAsync(this);
result.Wait();
return;
}