Skip to content

Commit 50449de

Browse files
Hide modified plugins in query results
1 parent 53eec76 commit 50449de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ join pluginFromManifest in PluginsManifest.UserPlugins
188188
on existingPlugin.Metadata.ID equals pluginFromManifest.ID
189189
where existingPlugin.Metadata.Version.CompareTo(pluginFromManifest.Version) <
190190
0 // if current version precedes manifest version
191+
&& !PluginManager.PluginModified(existingPlugin.Metadata.ID)
191192
select
192193
new
193194
{
@@ -317,6 +318,7 @@ internal List<Result> InstallFromWeb(string url)
317318

318319
var plugin = new UserPlugin
319320
{
321+
// FIXME installing in store then install web ver
320322
ID = "",
321323
Name = name,
322324
Version = string.Empty,
@@ -380,7 +382,7 @@ internal async ValueTask<List<Result>> RequestInstallOrUpdate(string search, Can
380382
var results =
381383
PluginsManifest
382384
.UserPlugins
383-
.Where(x => !PluginExists(x.ID))
385+
.Where(x => !PluginExists(x.ID) && !PluginManager.PluginModified(x.ID))
384386
.Select(x =>
385387
new Result
386388
{

0 commit comments

Comments
 (0)