arenos-nexus/Arenos Nexus/Library/PackageCache/com.unity.collab-proxy@ab839cc7d2ad/Editor/UVCSToolbar/Headless/HeadlessGluonUpdateProgress.cs
Daniel 2e704cae70 init
Init Commit Unity
2025-09-25 22:01:28 +02:00

51 lines
1.3 KiB
C#

using System;
using UnityEditor;
using Codice.Client.BaseCommands;
using GluonGui.WorkspaceWindow.Views.WorkspaceExplorer.Explorer;
using PlasticGui;
namespace Unity.PlasticSCM.Editor.Toolbar.Headless
{
internal class HeadlessGluonUpdateProgress : IUpdateProgress
{
void IUpdateProgress.ShowNoCancelableProgress()
{
if (mProgressId != -1)
Progress.Finish(mProgressId);
mProgressId = Progress.Start(
PlasticLocalization.GetString(PlasticLocalization.Name.UpdatingWorkspace));
}
void IUpdateProgress.EndProgress()
{
Progress.Finish(mProgressId);
mProgressId = -1;
}
void IUpdateProgress.RefreshProgress(
UpdateProgress updateProgress,
UpdateProgressData updateProgressData)
{
if (mProgressId == -1)
return;
float value = (float)updateProgressData.ProgressValue / 100f;
Progress.Report(
mProgressId,
value,
updateProgressData.Status);
}
void IUpdateProgress.ShowCancelableProgress()
{
throw new NotImplementedException();
}
int mProgressId = -1;
}
}