File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/Files.App/Data/Models Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ namespace Files.App.Data.Models
77{
88 public struct ByteSize : IEquatable < ByteSize > , IComparable < ByteSize >
99 {
10- private static IFoldersSettingsService FoldersSettingsService { get ; } = Ioc . Default . GetRequiredService < IFoldersSettingsService > ( ) ;
1110
1211 private static readonly FrozenDictionary < string , string > units = new Dictionary < string , string >
1312 {
@@ -29,9 +28,8 @@ public struct ByteSize : IEquatable<ByteSize>, IComparable<ByteSize>
2928 public ulong Bytes
3029 => ( ulong ) size . Bytes ;
3130
32- public string ShortString => FoldersSettingsService . SizeUnitFormat == SizeUnitTypes . BinaryUnits
33- ? $ "{ size . LargestWholeNumberBinaryValue : 0.##} { units [ size . LargestWholeNumberBinarySymbol ] } "
34- : $ "{ size . LargestWholeNumberDecimalValue : 0.##} { units [ size . LargestWholeNumberDecimalSymbol ] } ";
31+ public string ShortString
32+ => $ "{ size . LargestWholeNumberBinaryValue : 0.##} { units [ size . LargestWholeNumberBinarySymbol ] } ";
3533
3634 public string LongString
3735 => $ "{ ShortString } ({ size . Bytes : #,##0} { units [ ByteSizeLib . ByteSize . ByteSymbol ] } )";
You can’t perform that action at this time.
0 commit comments