Firstborn/Library/PackageCache/com.unity.collab-proxy@1.17.7/Editor/PlasticSCM/Developer/GenericProgress.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

25 lines
720 B
C#

using PlasticGui.WorkspaceWindow;
namespace Unity.PlasticSCM.Editor.Developer
{
internal class GenericProgress
{
internal GenericProgress(WorkspaceWindow workspaceWindow)
{
mWorkspaceWindow = workspaceWindow;
mWorkspaceWindow.Progress.CanCancelProgress = false;
}
internal void RefreshProgress(ProgressData progressData)
{
var progress = mWorkspaceWindow.Progress;
progress.ProgressHeader = progressData.Status;
progress.TotalProgressMessage = progressData.Details;
progress.TotalProgressPercent = progressData.ProgressValue / 100f;
}
WorkspaceWindow mWorkspaceWindow;
}
}