Files
Test/Library/PackageCache/com.unity.collab-proxy@4628d2ba6ea4/Editor/Diff/EditedTextBlockMarker.cs
T
2026-11-01 23:39:55 +02:00

27 lines
617 B
C#

using UnityEngine.UIElements;
namespace Unity.PlasticSCM.Editor.Diff
{
internal static class EditedTextBlockMarker
{
internal static void AddMark(Label title)
{
if (title.text.EndsWith(EDITED_MARK))
return;
title.text += EDITED_MARK;
}
internal static void RemoveMark(Label title)
{
if (!title.text.EndsWith(EDITED_MARK))
return;
title.text = title.text.Substring(
0, title.text.Length - EDITED_MARK.Length);
}
const string EDITED_MARK = " *";
}
}