mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Allow dev plugins to be updated, restrict updateAll instead
This commit is contained in:
parent
2d3e225e2c
commit
d1623267eb
1 changed files with 5 additions and 5 deletions
|
|
@ -685,7 +685,7 @@ namespace Dalamud.Plugin.Internal
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update all plugins.
|
||||
/// Update all non-dev plugins.
|
||||
/// </summary>
|
||||
/// <param name="dryRun">Perform a dry run, don't install anything.</param>
|
||||
/// <returns>Success or failure and a list of updated plugin metadata.</returns>
|
||||
|
|
@ -698,6 +698,10 @@ namespace Dalamud.Plugin.Internal
|
|||
// Prevent collection was modified errors
|
||||
foreach (var plugin in this.UpdatablePlugins)
|
||||
{
|
||||
// Can't update that!
|
||||
if (plugin.InstalledPlugin.IsDev)
|
||||
return null;
|
||||
|
||||
var result = await this.UpdateSinglePluginAsync(plugin, false, dryRun);
|
||||
if (result != null)
|
||||
updatedList.Add(result);
|
||||
|
|
@ -721,10 +725,6 @@ namespace Dalamud.Plugin.Internal
|
|||
{
|
||||
var plugin = metadata.InstalledPlugin;
|
||||
|
||||
// Can't update that!
|
||||
if (plugin.IsDev)
|
||||
return null;
|
||||
|
||||
var updateStatus = new PluginUpdateStatus
|
||||
{
|
||||
InternalName = plugin.Manifest.InternalName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue