You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
993 B
28 lines
993 B
using StabilityMatrix.Core.Models.Packages; |
|
using StabilityMatrix.Core.Models.Progress; |
|
|
|
namespace StabilityMatrix.Core.Models.PackageModification; |
|
|
|
public class SetupModelFoldersStep : IPackageStep |
|
{ |
|
private readonly BasePackage package; |
|
private readonly SharedFolderMethod sharedFolderMethod; |
|
private readonly string installPath; |
|
|
|
public SetupModelFoldersStep(BasePackage package, SharedFolderMethod sharedFolderMethod, |
|
string installPath) |
|
{ |
|
this.package = package; |
|
this.sharedFolderMethod = sharedFolderMethod; |
|
this.installPath = installPath; |
|
} |
|
|
|
public async Task ExecuteAsync(IProgress<ProgressReport>? progress = null) |
|
{ |
|
progress?.Report(new ProgressReport(-1f, "Setting up shared folder links...", |
|
isIndeterminate: true)); |
|
await package.SetupModelFolders(installPath, sharedFolderMethod).ConfigureAwait(false); |
|
} |
|
|
|
public string ProgressTitle => "Setting up shared folder links..."; |
|
}
|
|
|