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

Commit 9372ce7

Browse files
committed
This doesn't need to be in the UI thread
1 parent c22472d commit 9372ce7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ private void OnGitLfsLocksGUI()
292292
GUILayout.FlexibleSpace();
293293
if (GUILayout.Button("Unlock"))
294294
{
295-
Repository.ReleaseLock(lck.Path, true).FinallyInUI((b, exception) => {
296-
TaskManager.Run(UsageTracker.IncrementSettingsViewUnlockButtonLfsUnlock);
297-
}).Start();
295+
Repository.ReleaseLock(lck.Path, true)
296+
.Then(UsageTracker.IncrementSettingsViewUnlockButtonLfsUnlock)
297+
.Start();
298298
}
299299
}
300300
GUILayout.EndHorizontal();

0 commit comments

Comments
 (0)