Skip to content

Commit d726455

Browse files
committed
Relative Date - FileAge
1 parent f6103b1 commit d726455

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public PreviewPanel(Settings settings, string filePath)
7373
);
7474

7575
string result = formattedDate;
76-
if (Settings.ShowFileAgeInPreviewPanel) result = $"{GetRelativeDate(createdDate)} - {formattedDate}";
76+
if (Settings.ShowFileAgeInPreviewPanel) result = $"{GetFileAge(createdDate)} - {formattedDate}";
7777
CreatedAt = result;
7878
}
7979

@@ -85,7 +85,7 @@ public PreviewPanel(Settings settings, string filePath)
8585
CultureInfo.CurrentCulture
8686
);
8787
string result = formattedDate;
88-
if (Settings.ShowFileAgeInPreviewPanel) result = $"{GetRelativeDate(lastModifiedDate)} - {formattedDate}";
88+
if (Settings.ShowFileAgeInPreviewPanel) result = $"{GetFileAge(lastModifiedDate)} - {formattedDate}";
8989
LastModifiedAt = result;
9090
}
9191

@@ -97,7 +97,7 @@ private async Task LoadImageAsync()
9797
PreviewImage = await Main.Context.API.LoadImageAsync(FilePath, true).ConfigureAwait(false);
9898
}
9999

100-
private string GetRelativeDate(DateTime fileDateTime)
100+
private string GetFileAge(DateTime fileDateTime)
101101
{
102102
DateTime now = DateTime.Now;
103103
TimeSpan difference = now - fileDateTime;

0 commit comments

Comments
 (0)