This commit is contained in:
@@ -117,7 +117,7 @@ namespace Elwig.ViewModels {
|
||||
public partial string? WeightString { get; set; }
|
||||
public int? Weight {
|
||||
get => int.TryParse(WeightString?.Replace(Utils.GroupSeparator, ""), out var w) ? w : null;
|
||||
set => WeightString = $"{value:N0}";
|
||||
set => WeightString = value > 0 ? $"{value:N0}" : null;
|
||||
}
|
||||
[ObservableProperty]
|
||||
public partial string? TareString { get; set; } = "-";
|
||||
|
||||
Reference in New Issue
Block a user