From abb0c02dfe69e7ad89f481bb552c195ac86a785b Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Fri, 24 May 2024 10:12:34 +0600 Subject: [PATCH] Fix file info in preview panel of explorer plugin disappearing when file size display is disabled --- .../Views/PreviewPanel.xaml | 20 ++++++------------- .../Views/PreviewPanel.xaml.cs | 7 +++++++ 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml index a88acc6d1..4d7343fc5 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml @@ -54,20 +54,12 @@ - - - - + + - + + @@ -77,6 +69,7 @@ + + Settings.ShowFileSizeInPreviewPanel || + Settings.ShowCreatedDateInPreviewPanel || + Settings.ShowModifiedDateInPreviewPanel + ? Visibility.Visible + : Visibility.Collapsed; + public PreviewPanel(Settings settings, string filePath) { InitializeComponent();