Mark initializing plugins as modified

This commit is contained in:
Jack251970 2025-07-21 17:16:36 +08:00
parent 6d99416641
commit 9149e3f201
2 changed files with 3 additions and 2 deletions

View file

@ -713,7 +713,7 @@ namespace Flow.Launcher.Core.Plugin
public static bool PluginModified(string id)
{
return ModifiedPlugins.Contains(id);
return ModifiedPlugins.Contains(id) && _allInitializedPlugins.ContainsKey(id);
}
public static async Task<bool> UpdatePluginAsync(PluginMetadata existingVersion, UserPlugin newVersion, string zipFilePath)

View file

@ -534,7 +534,8 @@ namespace Flow.Launcher.Plugin
/// <summary>
/// Check if the plugin has been modified.
/// If this plugin is updated, installed or uninstalled and users do not restart the app,
/// If this plugin is initializing, it will be marked as modified.
/// Or if this plugin is updated, installed or uninstalled and users do not restart the app,
/// it will be marked as modified
/// </summary>
/// <param name="id">Plugin id</param>