mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
Updating manually now uses a command so it shows progress
This commit is contained in:
parent
e7780af212
commit
aa26d68f18
5 changed files with 24 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue