mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add FileName & FilePath as public properties
This commit is contained in:
parent
9d3a0f0b70
commit
21299d153f
1 changed files with 5 additions and 4 deletions
|
|
@ -21,7 +21,8 @@ public partial class PreviewPanel : UserControl
|
|||
{
|
||||
private static readonly string ClassName = nameof(PreviewPanel);
|
||||
|
||||
private string FilePath { get; }
|
||||
public string FilePath { get; }
|
||||
public string FileName { get; }
|
||||
public string FileSize { get; private set; } = Main.Context.API.GetTranslation("plugin_explorer_plugin_tooltip_more_info_unknown");
|
||||
public string CreatedAt { get; } = "";
|
||||
public string LastModifiedAt { get; } = "";
|
||||
|
|
@ -57,11 +58,11 @@ public partial class PreviewPanel : UserControl
|
|||
|
||||
public PreviewPanel(Settings settings, string filePath, ResultType type)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Settings = settings;
|
||||
|
||||
FilePath = filePath;
|
||||
FileName = Path.GetFileName(filePath);
|
||||
|
||||
InitializeComponent();
|
||||
|
||||
if (Settings.ShowFileSizeInPreviewPanel)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue