diff --git a/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSource.cs b/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSource.cs index 1277a92fe..e8c3b998c 100644 --- a/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSource.cs +++ b/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSource.cs @@ -47,6 +47,8 @@ namespace Flow.Launcher.Plugin.WebSearch [JsonIgnore] public ImageSource Image => ImageLoader.Load(IconPath); + internal void NotifyImageChange() => OnPropertyChanged(nameof(Image)); + public string Url { get; set; } public bool Enabled { get; set; } diff --git a/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSourceViewModel.cs b/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSourceViewModel.cs index 5bcb3938d..2ca09d408 100644 --- a/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSourceViewModel.cs +++ b/Plugins/Flow.Launcher.Plugin.WebSearch/SearchSourceViewModel.cs @@ -1,4 +1,4 @@ -using Flow.Launcher.Infrastructure; +using Flow.Launcher.Infrastructure; using Flow.Launcher.Infrastructure.UserSettings; using System; using System.IO; @@ -6,7 +6,7 @@ using System.Windows.Forms; namespace Flow.Launcher.Plugin.WebSearch { - public class SearchSourceViewModel + public class SearchSourceViewModel : BaseModel { private readonly string destinationDirectory = Path.Combine(DataLocation.DataDirectory(), @"Settings\Plugins\Flow.Launcher.Plugin.WebSearch\IconImages"); @@ -30,6 +30,8 @@ namespace Flow.Launcher.Plugin.WebSearch Directory.CreateDirectory(destinationDirectory); File.Copy(fullpathToSelectedImage, destinationFileNameFullPath); + + selectedSearchSource.NotifyImageChange(); } catch(Exception e) {