Config: add debug flag

This commit is contained in:
2023-09-13 22:02:50 +02:00
parent b2a78907cf
commit a659d07db2
4 changed files with 19 additions and 2 deletions

View File

@ -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;