Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f513adc

Browse files
Fixing owner username checks
1 parent 7546b38 commit f513adc

File tree

1 file changed

+2
-2
lines changed
  • src/UnityExtension/Assets/Editor/GitHub.Unity/UI

1 file changed

+2
-2
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/LocksView.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private void RenderEntry(Rect entryRect, GitLockEntry entry, int index)
119119
Styles.Label.Draw(entryRect, GUIContent.none, false, false, isSelected, hasKeyboardFocus);
120120
Styles.Label.Draw(iconRect, entry.Content, false, false, isSelected, hasKeyboardFocus);
121121
Styles.Label.Draw(pathRect, entry.GitLock.Path, false, false, isSelected, hasKeyboardFocus);
122-
Styles.Label.Draw(userRect, entry.GitLock.User, false, false, isSelected, hasKeyboardFocus);
122+
Styles.Label.Draw(userRect, entry.GitLock.Owner.Name, false, false, isSelected, hasKeyboardFocus);
123123
Styles.Label.Draw(dateRect, DateTimeOffset.Now.ToString(), false, false, isSelected, hasKeyboardFocus);
124124
}
125125

@@ -353,7 +353,7 @@ public override void OnGUI()
353353
string unlockFile;
354354
GenericMenu.MenuFunction menuFunction;
355355

356-
if (entry.User == currentUsername)
356+
if (entry.Owner.Name == currentUsername)
357357
{
358358
unlockFile = "Unlock File";
359359
menuFunction = UnlockSelectedEntry;

0 commit comments

Comments
 (0)