"Renamed GetPlugins method to GetInstalledPlugins"

The method `GetPlugins` in the `LocalPluginMetadataProvider` class and the reference to it in the `PluginUpdateChecker` were renamed as `GetInstalledPlugins`. This renaming serves to make the method name more descriptive and better represent its purpose, i.e., to retrieve installed plugins.
This commit is contained in:
Ivandro Jao 2023-08-17 23:19:16 +01:00
parent 0d7a5d3c58
commit 3d4477d113
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ namespace Nikse.SubtitleEdit.Plugins
_pluginFolder = pluginFolder ?? throw new ArgumentNullException(nameof(pluginFolder));
}
public IReadOnlyCollection<LocalPlugin> GetPlugins()
public IReadOnlyCollection<LocalPlugin> GetInstalledPlugins()
{
var pluginFiles = Directory.GetFiles(_pluginFolder, KnownPluginExtension);

View File

@ -26,7 +26,7 @@ namespace Nikse.SubtitleEdit.Plugins
{
_lastCheckDate = DateTime.Now;
var installedPlugins = _localPluginMetadataProvider.GetPlugins();
var installedPlugins = _localPluginMetadataProvider.GetInstalledPlugins();
// no plugin is currently installed
if (!installedPlugins.Any())
{