mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Updating manually now uses a command so it shows progress
This commit is contained in:
@@ -16,7 +16,7 @@ namespace NzbDrone.Core.Update
|
||||
void InstallUpdate(UpdatePackage updatePackage);
|
||||
}
|
||||
|
||||
public class InstallUpdateService : IInstallUpdates, IExecute<ApplicationUpdateCommand>
|
||||
public class InstallUpdateService : IInstallUpdates, IExecute<ApplicationUpdateCommand>, IExecute<InstallUpdateCommand>
|
||||
{
|
||||
private readonly ICheckUpdateService _checkUpdateService;
|
||||
private readonly Logger _logger;
|
||||
@@ -89,5 +89,10 @@ namespace NzbDrone.Core.Update
|
||||
InstallUpdate(latestAvailable);
|
||||
}
|
||||
}
|
||||
|
||||
public void Execute(InstallUpdateCommand message)
|
||||
{
|
||||
InstallUpdate(message.UpdatePackage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user