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

28 lines
712 B
C#

using Unity.PlasticSCM.Editor.Views.IncomingChanges;
using Unity.PlasticSCM.Editor.Views.PendingChanges;
namespace Unity.PlasticSCM.Editor
{
internal static class AutoRefresh
{
internal static void PendingChangesView(PendingChangesTab pendingChangesTab)
{
if (pendingChangesTab == null)
return;
pendingChangesTab.AutoRefresh();
}
internal static void IncomingChangesView(IIncomingChangesTab incomingChangesTab)
{
if (incomingChangesTab == null)
return;
if (!incomingChangesTab.IsVisible)
return;
incomingChangesTab.AutoRefresh();
}
}
}