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

Commit da3c355

Browse files
authored
Merge pull request #321 from github/fixes/remove-history-lock-button
Removing mysterious lock button on HistoryView
2 parents fa937a0 + 19f8357 commit da3c355

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class HistoryView : Subview
5151
[SerializeField] private bool broadMode;
5252
#endif
5353
[SerializeField] private Vector2 detailsScroll;
54-
[SerializeField] private bool historyLocked = true;
5554
[SerializeField] private Object historyTarget;
5655
[SerializeField] private Vector2 scroll;
5756
[SerializeField] private string selectionID;
@@ -150,7 +149,7 @@ public override void Refresh()
150149

151150
public override void OnSelectionChange()
152151
{
153-
if (!historyLocked && !string.IsNullOrEmpty(AssetDatabase.GetAssetPath(Selection.activeObject)))
152+
if (!string.IsNullOrEmpty(AssetDatabase.GetAssetPath(Selection.activeObject)))
154153
{
155154
historyTarget = Selection.activeObject;
156155
Refresh();
@@ -343,11 +342,6 @@ public void OnEmbeddedGUI()
343342
Push();
344343
}
345344

346-
// Target lock button
347-
EditorGUI.BeginChangeCheck();
348-
{
349-
historyLocked = GUILayout.Toggle(historyLocked, GUIContent.none, Styles.HistoryLockStyle);
350-
}
351345
if (EditorGUI.EndChangeCheck())
352346
{
353347
OnSelectionChange();

0 commit comments

Comments
 (0)