mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
"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:
parent
0d7a5d3c58
commit
3d4477d113
@ -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);
|
||||
|
||||
|
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user