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

Fix to correctly update LFS lock status #304

Merged
merged 11 commits into from
Sep 12, 2017

Conversation

StanleyGoldman
Copy link
Contributor

@StanleyGoldman StanleyGoldman commented Sep 12, 2017

Fixes #303

Depends on:

img

@@ -22,6 +22,8 @@ class ProjectWindowInterface : AssetPostprocessor

public static void Initialize(IRepository repo)
{
Logger.Trace("Initialize HasRespository:{0}", repo != null);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/HasRespository/HasRepository 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}

private static void RunStatusUpdateOnMainThread(GitStatus update)
{
EntryPoint.ApplicationManager.TaskManager.ScheduleUI(new ActionTask(EntryPoint.ApplicationManager.TaskManager.Token, _ => OnStatusUpdate(update)));
new ActionTask(EntryPoint.ApplicationManager.TaskManager.Token, _ => OnStatusUpdate(update))
.ScheduleUI(EntryPoint.ApplicationManager.TaskManager);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IF you're changing this to a new ActionTask, then it should be new ActionTask(...) { Affinity = TaskAffinity.UI }.Start(), otherwise there's no point in making this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I update this section as well

private static void RunLocksUpdateOnMainThread(IEnumerable<GitLock> update)
{
new ActionTask(EntryPoint.ApplicationManager.TaskManager.Token, _ => OnLocksUpdate(update))
.ScheduleUI(EntryPoint.ApplicationManager.TaskManager);
}

@StanleyGoldman StanleyGoldman merged commit acc6efc into master Sep 12, 2017
@StanleyGoldman StanleyGoldman deleted the fixes/lock-status-updates branch September 12, 2017 19:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants