Singularity/Library/PackageCache/com.unity.collab-proxy@2.0.3/Editor/PlasticSCM/Developer/GenericProgress.cs

25 lines
720 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
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;
}
}