TareCorrectionDialog: Allow actual tare to be null
Test / Run tests (push) Successful in 2m43s

This commit is contained in:
lorenz.stechauner committed 2026-09-16 17:21:19 +02:00
1 parent 15e191d74e
commit 098798a532
4 files changed
+16 -14

No files matched your search

+1 -1
View File
@@ -303,7 +303,7 @@ namespace Elwig.Helpers {
return d.ShowDialog() == true ? (d.Weight, d.Reason) : null;
}
public static int? ShowTareCorrectionDialog(int actualTare, int? targetTare = null) {
public static int? ShowTareCorrectionDialog(int? actualTare, int? targetTare = null) {
var d = new TareCorrectionDialog(actualTare, targetTare);
return d.ShowDialog() == true ? d.TargetTare - d.ActualTare : null;
}