@@ -100,7 +100,7 @@ private static bool IsObjectUnlocked(Object selected)
100100 [ MenuItem ( AssetsMenuRequestLock ) ]
101101 private static void ContextMenu_Lock ( )
102102 {
103- isBusy = true ;
103+ // isBusy = true;
104104
105105 var unlockedObjects = Selection . objects . Where ( IsObjectUnlocked ) . ToArray ( ) ;
106106 var tasks = unlockedObjects . Select ( LockObject ) . ToArray ( ) ;
@@ -111,12 +111,14 @@ private static void ContextMenu_Lock()
111111 taskQueue . Queue ( task ) ;
112112 }
113113
114- taskQueue . FinallyInUI ( ( success , exception ) =>
115- {
116- isBusy = false ;
117- Selection . activeGameObject = null ;
118- EditorApplication . RepaintProjectWindow ( ) ;
119- } ) . Start ( ) ;
114+ taskQueue . Start ( ) ;
115+
116+ // taskQueue.FinallyInUI((success, exception) =>
117+ // {
118+ // isBusy = false;
119+ // Selection.activeGameObject = null;
120+ // EditorApplication.RepaintProjectWindow();
121+ // }).Start();
120122 }
121123
122124 private static ITask LockObject ( Object selected )
@@ -162,7 +164,7 @@ private static bool IsObjectLocked(Object selected)
162164 [ MenuItem ( AssetsMenuReleaseLock , false , 1000 ) ]
163165 private static void ContextMenu_Unlock ( )
164166 {
165- isBusy = true ;
167+ // isBusy = true;
166168
167169 var lockedObjects = Selection . objects . Where ( IsObjectLocked ) . ToArray ( ) ;
168170 var tasks = lockedObjects . Select ( o => UnlockObject ( o , false ) ) . ToArray ( ) ;
@@ -173,12 +175,14 @@ private static void ContextMenu_Unlock()
173175 taskQueue . Queue ( task ) ;
174176 }
175177
176- taskQueue . FinallyInUI ( ( success , exception ) =>
177- {
178- isBusy = false ;
179- Selection . activeGameObject = null ;
180- EditorApplication . RepaintProjectWindow ( ) ;
181- } ) . Start ( ) ;
178+ taskQueue . Start ( ) ;
179+
180+ // taskQueue.FinallyInUI((success, exception) =>
181+ // {
182+ // isBusy = false;
183+ // Selection.activeGameObject = null;
184+ // EditorApplication.RepaintProjectWindow();
185+ // }).Start();
182186 }
183187
184188 [ MenuItem ( AssetsMenuReleaseLockForced , true , 1000 ) ]
@@ -205,7 +209,7 @@ private static bool ContextMenu_CanUnlockForce()
205209 [ MenuItem ( AssetsMenuReleaseLockForced , false , 1000 ) ]
206210 private static void ContextMenu_UnlockForce ( )
207211 {
208- isBusy = true ;
212+ // isBusy = true;
209213
210214 var lockedObjects = Selection . objects . Where ( IsObjectLocked ) . ToArray ( ) ;
211215 var tasks = lockedObjects . Select ( o => UnlockObject ( o , true ) ) . ToArray ( ) ;
@@ -216,12 +220,14 @@ private static void ContextMenu_UnlockForce()
216220 taskQueue . Queue ( task ) ;
217221 }
218222
219- taskQueue . FinallyInUI ( ( success , exception ) =>
220- {
221- isBusy = false ;
222- Selection . activeGameObject = null ;
223- EditorApplication . RepaintProjectWindow ( ) ;
224- } ) . Start ( ) ;
223+ taskQueue . Start ( ) ;
224+
225+ // taskQueue.FinallyInUI((success, exception) =>
226+ // {
227+ // isBusy = false;
228+ // Selection.activeGameObject = null;
229+ // EditorApplication.RepaintProjectWindow();
230+ // }).Start();
225231 }
226232
227233 private static ITask UnlockObject ( Object selected , bool force )
0 commit comments