File tree 1 file changed +2
-4
lines changed
src/Files.App/Data/Models
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
7
7
{
8
8
public struct ByteSize : IEquatable < ByteSize > , IComparable < ByteSize >
9
9
{
10
- private static IFoldersSettingsService FoldersSettingsService { get ; } = Ioc . Default . GetRequiredService < IFoldersSettingsService > ( ) ;
11
10
12
11
private static readonly FrozenDictionary < string , string > units = new Dictionary < string , string >
13
12
{
@@ -29,9 +28,8 @@ public struct ByteSize : IEquatable<ByteSize>, IComparable<ByteSize>
29
28
public ulong Bytes
30
29
=> ( ulong ) size . Bytes ;
31
30
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 ] } ";
35
33
36
34
public string LongString
37
35
=> $ "{ ShortString } ({ size . Bytes : #,##0} { units [ ByteSizeLib . ByteSize . ByteSymbol ] } )";
You can’t perform that action at this time.
0 commit comments