From ce489586caaf95bfd71a8e55328a4ef5d9fe2e47 Mon Sep 17 00:00:00 2001 From: Lasith Manujitha Date: Wed, 17 Jul 2024 04:29:30 +0530 Subject: [PATCH] Add Minor fixes --- Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml | 2 +- .../ViewModels/SettingsViewModel.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml index bf9535820..18fc33675 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml @@ -64,7 +64,7 @@ Directory Recursive Search Engine Index Search Engine Open Windows Index Option - Ignored File Types (comma seperated) + Excluded File Types (comma seperated) For example: exe,jpg,png diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs index b0f0c6c75..729e05ba0 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs @@ -518,7 +518,8 @@ namespace Flow.Launcher.Plugin.Explorer.ViewModels get => Settings.ExcludedFileTypes; set { - string sanitized = string.IsNullOrEmpty(value) ? value : value.Replace(" ", "").Replace(".", ""); + // remove spaces and dots from the string before saving + string sanitized = string.IsNullOrEmpty(value) ? "" : value.Replace(" ", "").Replace(".", ""); Settings.ExcludedFileTypes = sanitized; OnPropertyChanged(); }