diff --git a/Flow.Launcher/ViewModel/ResultViewModel.cs b/Flow.Launcher/ViewModel/ResultViewModel.cs index a188cd357e1..458aa498f4b 100644 --- a/Flow.Launcher/ViewModel/ResultViewModel.cs +++ b/Flow.Launcher/ViewModel/ResultViewModel.cs @@ -163,15 +163,17 @@ private async ValueTask LoadImageAsync() } } + var loadFullImage = (Path.GetExtension(imagePath) ?? "").Equals(".url", StringComparison.OrdinalIgnoreCase); + if (ImageLoader.CacheContainImage(imagePath)) { // will get here either when icoPath has value\icon delegate is null\when had exception in delegate - image = ImageLoader.Load(imagePath); + image = ImageLoader.Load(imagePath, loadFullImage); return; } // We need to modify the property not field here to trigger the OnPropertyChanged event - Image = await Task.Run(() => ImageLoader.Load(imagePath)).ConfigureAwait(false); + Image = await Task.Run(() => ImageLoader.Load(imagePath, loadFullImage)).ConfigureAwait(false); } public Result Result { get; } diff --git a/Plugins/Flow.Launcher.Plugin.Program/Flow.Launcher.Plugin.Program.csproj b/Plugins/Flow.Launcher.Plugin.Program/Flow.Launcher.Plugin.Program.csproj index 2809e0b5cfa..83f9464c436 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Flow.Launcher.Plugin.Program.csproj +++ b/Plugins/Flow.Launcher.Plugin.Program/Flow.Launcher.Plugin.Program.csproj @@ -58,6 +58,7 @@ + diff --git a/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml index 8d8cae02c9f..91e0fda1142 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml +++ b/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml @@ -4,6 +4,7 @@ xmlns:system="clr-namespace:System;assembly=mscorlib"> + Reset Default Delete Edit Add @@ -12,7 +13,7 @@ Disable Location All Programs - File Suffixes + File Type Reindex Indexing Index Start Menu @@ -35,9 +36,21 @@ Are you sure you want to delete the selected program sources? OK - Flow Launcher will only index files that end with the following suffixes. (Each suffix should split by ';' ) + Program Plugin will only index files with selected suffixes and .url files with selected protocols. Successfully updated file suffixes File suffixes can't be empty + Protocols can't be empty + + File Suffixes + URL Protocols + Custom URL Protocols + Custom File Suffixes + + Insert file suffixes you want to index. Suffixes should be separated by ';'. (ex>bat;py) + + + Insert protocols of .url files you want to index. Protocols should be separated by ';'. (ex>ftp;netflix) + Run As Different User Run As Administrator diff --git a/Plugins/Flow.Launcher.Plugin.Program/ProgramSuffixes.xaml b/Plugins/Flow.Launcher.Plugin.Program/ProgramSuffixes.xaml index e5f4041410f..1d0267e3da7 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/ProgramSuffixes.xaml +++ b/Plugins/Flow.Launcher.Plugin.Program/ProgramSuffixes.xaml @@ -4,10 +4,12 @@ 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:ui="http://schemas.modernwpf.com/2019" Title="{DynamicResource flowlauncher_plugin_program_suffixes}" - Width="400" + Width="600" Background="{DynamicResource PopuBGColor}" Foreground="{DynamicResource PopupTextColor}" + DataContext="{Binding RelativeSource={RelativeSource Self}}" ResizeMode="NoResize" SizeToContent="Height" WindowStartupLocation="CenterScreen" @@ -15,9 +17,73 @@ - + + + + + + + + + + + - + @@ -55,7 +121,9 @@ + + - + + + + + + + + + + + + + + + + + appref-ms + exe + lnk + + + + + + + + Steam Games + Epic Games + Http/Https + + + + +