mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix logic & Add code comments
This commit is contained in:
parent
6409c193c4
commit
59e4fb82b9
1 changed files with 4 additions and 3 deletions
|
|
@ -725,9 +725,10 @@ namespace Flow.Launcher.Core.Plugin
|
|||
|
||||
public static bool PluginModified(string id)
|
||||
{
|
||||
// We should consider initializing plugin as modified since it cannot be installed/uninstalled/updated and
|
||||
// we cannot call any plugin methods
|
||||
return ModifiedPlugins.Contains(id) && _allInitializedPlugins.ContainsKey(id);
|
||||
return ModifiedPlugins.Contains(id) ||
|
||||
// We should consider initializing plugin as modified since it cannot be installed/uninstalled/updated and
|
||||
// we cannot call any plugin methods
|
||||
_allInitializedPlugins.ContainsKey(id);
|
||||
}
|
||||
|
||||
public static async Task<bool> UpdatePluginAsync(PluginMetadata existingVersion, UserPlugin newVersion, string zipFilePath)
|
||||
|
|
|
|||
Loading…
Reference in a new issue