Skip to content

Commit 59e4fb8

Browse files
committed
Fix logic & Add code comments
1 parent 6409c19 commit 59e4fb8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,9 +725,10 @@ private static bool SameOrLesserPluginVersionExists(string metadataPath)
725725

726726
public static bool PluginModified(string id)
727727
{
728-
// We should consider initializing plugin as modified since it cannot be installed/uninstalled/updated and
729-
// we cannot call any plugin methods
730-
return ModifiedPlugins.Contains(id) && _allInitializedPlugins.ContainsKey(id);
728+
return ModifiedPlugins.Contains(id) ||
729+
// We should consider initializing plugin as modified since it cannot be installed/uninstalled/updated and
730+
// we cannot call any plugin methods
731+
_allInitializedPlugins.ContainsKey(id);
731732
}
732733

733734
public static async Task<bool> UpdatePluginAsync(PluginMetadata existingVersion, UserPlugin newVersion, string zipFilePath)

0 commit comments

Comments
 (0)