Config: add debug flag
This commit is contained in:
@ -771,8 +771,11 @@ namespace Elwig.Windows {
|
||||
using var doc = new DeliveryNote(p.Delivery, Context);
|
||||
await doc.Generate();
|
||||
Mouse.OverrideCursor = null;
|
||||
doc.Show();
|
||||
//await doc.Print(2);
|
||||
if (App.Config.Debug) {
|
||||
doc.Show();
|
||||
} else {
|
||||
await doc.Print(2);
|
||||
}
|
||||
}
|
||||
FinishButton.Cursor = null;
|
||||
DeliveryList.SelectedItem = null;
|
||||
|
Reference in New Issue
Block a user