File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -183,8 +183,8 @@ public bool IsUncompressedItemSizeVisibile
183
183
set => SetProperty ( ref isUncompressedItemSizeVisibile , value ) ;
184
184
}
185
185
186
- private long itemSizeBytes ;
187
- public long ItemSizeBytes
186
+ private decimal itemSizeBytes ;
187
+ public decimal ItemSizeBytes
188
188
{
189
189
get => itemSizeBytes ;
190
190
set => SetProperty ( ref itemSizeBytes , value ) ;
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ public static string ConvertSizeAbbreviation(this string value)
82
82
public static string ToSizeString ( this double size ) => ByteSize . FromBytes ( size ) . ToSizeString ( ) ;
83
83
public static string ToSizeString ( this long size ) => ByteSize . FromBytes ( size ) . ToSizeString ( ) ;
84
84
public static string ToSizeString ( this ulong size ) => ByteSize . FromBytes ( size ) . ToSizeString ( ) ;
85
+ public static string ToSizeString ( this decimal size ) => ByteSize . FromBytes ( ( double ) size ) . ToSizeString ( ) ;
85
86
public static string ToSizeString ( this ByteSize size ) => size . ToBinaryString ( ) . ConvertSizeAbbreviation ( ) ;
86
87
87
88
public static string ToLongSizeString ( this long size ) => ByteSize . FromBytes ( size ) . ToLongSizeString ( ) ;
Original file line number Diff line number Diff line change @@ -702,7 +702,7 @@ public void UpdateSelectionSize()
702
702
var isSizeKnown = ! items . Any ( item => string . IsNullOrEmpty ( item . FileSize ) ) ;
703
703
if ( isSizeKnown )
704
704
{
705
- long size = items . Sum ( item => item . FileSizeBytes ) ;
705
+ decimal size = items . Sum ( item => item . FileSizeBytes ) ;
706
706
SelectedItemsPropertiesViewModel . ItemSizeBytes = size ;
707
707
SelectedItemsPropertiesViewModel . ItemSize = size . ToSizeString ( ) ;
708
708
}
You can’t perform that action at this time.
0 commit comments