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
183183 set => SetProperty ( ref isUncompressedItemSizeVisibile , value ) ;
184184 }
185185
186- private long itemSizeBytes ;
187- public long ItemSizeBytes
186+ private decimal itemSizeBytes ;
187+ public decimal ItemSizeBytes
188188 {
189189 get => itemSizeBytes ;
190190 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)
8282 public static string ToSizeString ( this double size ) => ByteSize . FromBytes ( size ) . ToSizeString ( ) ;
8383 public static string ToSizeString ( this long size ) => ByteSize . FromBytes ( size ) . ToSizeString ( ) ;
8484 public static string ToSizeString ( this ulong size ) => ByteSize . FromBytes ( size ) . ToSizeString ( ) ;
85+ public static string ToSizeString ( this decimal size ) => ByteSize . FromBytes ( ( double ) size ) . ToSizeString ( ) ;
8586 public static string ToSizeString ( this ByteSize size ) => size . ToBinaryString ( ) . ConvertSizeAbbreviation ( ) ;
8687
8788 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()
702702 var isSizeKnown = ! items . Any ( item => string . IsNullOrEmpty ( item . FileSize ) ) ;
703703 if ( isSizeKnown )
704704 {
705- long size = items . Sum ( item => item . FileSizeBytes ) ;
705+ decimal size = items . Sum ( item => item . FileSizeBytes ) ;
706706 SelectedItemsPropertiesViewModel . ItemSizeBytes = size ;
707707 SelectedItemsPropertiesViewModel . ItemSize = size . ToSizeString ( ) ;
708708 }
You can’t perform that action at this time.
0 commit comments