DeliveryAdminWindow: Small quality of life fixes
This commit is contained in:
@ -84,8 +84,8 @@ namespace Elwig {
|
||||
|
||||
var list = new List<IScale>();
|
||||
foreach (var s in Config.Scales) {
|
||||
var id = s[0];
|
||||
try {
|
||||
var id = s[0];
|
||||
var type = s[1]?.ToLower();
|
||||
var model = s[2];
|
||||
var cnx = s[3];
|
||||
@ -99,6 +99,7 @@ namespace Elwig {
|
||||
throw new ArgumentException($"Invalid scale type: \"{type}\"");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
list.Add(new InvalidScale(id));
|
||||
MessageBox.Show($"Unable to create scale {s[0]}:\n\n{e.Message}", "Scale Error", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user