Skip to content

Commit 4550c90

Browse files
committed
minor fixes and cleanup
1 parent 4e67757 commit 4550c90

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

Files/Filesystem/ListedItem.cs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,10 @@ public string ItemType
220220
}
221221
}
222222

223-
public string FileExtension
224-
{
225-
get => fileExtension;
226-
set => SetProperty(ref fileExtension, value);
227-
}
223+
public string FileExtension { get; set; }
224+
225+
private string fileSize;
226+
228227
public string FileSize
229228
{
230229
get => fileSize;
@@ -234,6 +233,7 @@ public string FileSize
234233
OnPropertyChanged(nameof(FileSizeDisplay));
235234
}
236235
}
236+
237237
public string FileSizeDisplay => string.IsNullOrEmpty(FileSize) ? "ItemSizeNotCalcluated".GetLocalized() : FileSize;
238238
public long FileSizeBytes { get; set; }
239239
public string ItemDateModified { get; private set; }
@@ -260,7 +260,7 @@ public DateTimeOffset ItemDateCreatedReal
260260
{
261261
ItemDateCreated = value.GetFriendlyDateFromFormat(DateReturnFormat);
262262
itemDateCreatedReal = value;
263-
OnPropertyChanged(nameof(ItemDateCreatedReal));
263+
OnPropertyChanged(nameof(ItemDateCreated));
264264
}
265265
}
266266

@@ -273,7 +273,7 @@ public DateTimeOffset ItemDateAccessedReal
273273
{
274274
ItemDateAccessed = value.GetFriendlyDateFromFormat(DateReturnFormat);
275275
itemDateAccessedReal = value;
276-
OnPropertyChanged(nameof(ItemDateAccessedReal));
276+
OnPropertyChanged(nameof(ItemDateAccessed));
277277
}
278278
}
279279

@@ -355,8 +355,6 @@ public override string ToString()
355355
public bool IsPinned => App.SidebarPinnedController.Model.FavoriteItems.Contains(itemPath);
356356

357357
private BaseStorageFile itemFile;
358-
private string fileExtension;
359-
private string fileSize;
360358

361359
public BaseStorageFile ItemFile
362360
{

Files/Helpers/NativeDirectoryChangesHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public struct OffsetPair { public uint Offset; public uint OffsetHigh; }
6060
public const int FILE_NOTIFY_CHANGE_CREATION = 64;
6161
public const int FILE_NOTIFY_CHANGE_SECURITY = 256;
6262

63-
6463
public unsafe struct FILE_NOTIFY_INFORMATION
6564
{
6665
public uint NextEntryOffset;

0 commit comments

Comments
 (0)