This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ class HistoryView : Subview
51
51
[ SerializeField ] private bool broadMode ;
52
52
#endif
53
53
[ SerializeField ] private Vector2 detailsScroll ;
54
- [ SerializeField ] private bool historyLocked = true ;
55
54
[ SerializeField ] private Object historyTarget ;
56
55
[ SerializeField ] private Vector2 scroll ;
57
56
[ SerializeField ] private string selectionID ;
@@ -150,7 +149,7 @@ public override void Refresh()
150
149
151
150
public override void OnSelectionChange ( )
152
151
{
153
- if ( ! historyLocked && ! string . IsNullOrEmpty ( AssetDatabase . GetAssetPath ( Selection . activeObject ) ) )
152
+ if ( ! string . IsNullOrEmpty ( AssetDatabase . GetAssetPath ( Selection . activeObject ) ) )
154
153
{
155
154
historyTarget = Selection . activeObject ;
156
155
Refresh ( ) ;
@@ -343,11 +342,6 @@ public void OnEmbeddedGUI()
343
342
Push ( ) ;
344
343
}
345
344
346
- // Target lock button
347
- EditorGUI . BeginChangeCheck ( ) ;
348
- {
349
- historyLocked = GUILayout . Toggle ( historyLocked , GUIContent . none , Styles . HistoryLockStyle ) ;
350
- }
351
345
if ( EditorGUI . EndChangeCheck ( ) )
352
346
{
353
347
OnSelectionChange ( ) ;
You can’t perform that action at this time.
0 commit comments