diff --git a/Plugins/Flow.Launcher.Plugin.Program/LocationConverter.cs b/Plugins/Flow.Launcher.Plugin.Program/LocationConverter.cs deleted file mode 100644 index 41384aa83..000000000 --- a/Plugins/Flow.Launcher.Plugin.Program/LocationConverter.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Globalization; -using System.Windows.Data; -using System.Windows.Markup; - -namespace Flow.Launcher.Plugin.Program -{ - public class LocationConverter : MarkupExtension, IValueConverter - { - public object Convert(object value, Type targetType, object parameter, CultureInfo culture) - { - var text = value as string; - if (string.IsNullOrEmpty(text)) - { - return string.Empty; - } - else - { - return text; - } - } - - public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) - { - throw new NotSupportedException(); - } - - public override object ProvideValue(IServiceProvider serviceProvider) - { - return this; - } - } -} diff --git a/Plugins/Flow.Launcher.Plugin.Program/ViewModels/AddProgramSourceViewModel.cs b/Plugins/Flow.Launcher.Plugin.Program/ViewModels/AddProgramSourceViewModel.cs index c47525fde..4d653ddb2 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/ViewModels/AddProgramSourceViewModel.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/ViewModels/AddProgramSourceViewModel.cs @@ -101,7 +101,6 @@ namespace Flow.Launcher.Plugin.Program.ViewModels public (bool, string) UpdateProgramSource() { - // Separate checks to avoid changing UniqueIdentifier of UWP when changing Enabled if (LocationModified) { if (!Directory.Exists(Location)) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml index 3f9e7196c..2bc70a90a 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml +++ b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml @@ -4,7 +4,6 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:program="clr-namespace:Flow.Launcher.Plugin.Program" Height="520" DataContext="{Binding RelativeSource={RelativeSource Self}}" mc:Ignorable="d"> @@ -172,7 +171,7 @@ - +