Skip to content

Commit 269d21a

Browse files
committed
Change plugin modified logic
1 parent 566bd04 commit 269d21a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -738,10 +738,7 @@ private static bool SameOrLesserPluginVersionExists(string metadataPath)
738738

739739
public static bool PluginModified(string id)
740740
{
741-
return ModifiedPlugins.Contains(id) ||
742-
// We should consider initializing plugin as modified since it cannot be installed/uninstalled/updated and
743-
// we cannot call any plugin methods
744-
_allInitializedPlugins.ContainsKey(id);
741+
return ModifiedPlugins.Contains(id);
745742
}
746743

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

Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,7 @@ public interface IPublicAPI
534534

535535
/// <summary>
536536
/// Check if the plugin has been modified.
537-
/// If this plugin is initializing, it will be marked as modified.
538-
/// Or if this plugin is updated, installed or uninstalled and users do not restart the app,
537+
/// If this plugin is updated, installed or uninstalled and users do not restart the app,
539538
/// it will be marked as modified
540539
/// </summary>
541540
/// <param name="id">Plugin id</param>

0 commit comments

Comments
 (0)