File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Plugins/Flow.Launcher.Plugin.Explorer/Views Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ public partial class PreviewPanel : UserControl
21
21
{
22
22
private static readonly string ClassName = nameof ( PreviewPanel ) ;
23
23
24
- private string FilePath { get ; }
24
+ public string FilePath { get ; }
25
+ public string FileName { get ; }
25
26
public string FileSize { get ; private set ; } = Main . Context . API . GetTranslation ( "plugin_explorer_plugin_tooltip_more_info_unknown" ) ;
26
27
public string CreatedAt { get ; } = "" ;
27
28
public string LastModifiedAt { get ; } = "" ;
@@ -57,11 +58,11 @@ private set
57
58
58
59
public PreviewPanel ( Settings settings , string filePath , ResultType type )
59
60
{
60
- InitializeComponent ( ) ;
61
-
62
61
Settings = settings ;
63
-
64
62
FilePath = filePath ;
63
+ FileName = Path . GetFileName ( filePath ) ;
64
+
65
+ InitializeComponent ( ) ;
65
66
66
67
if ( Settings . ShowFileSizeInPreviewPanel )
67
68
{
You can’t perform that action at this time.
0 commit comments