This repository was archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 445
Project Window Interface Fixes #911
Merged
StanleyGoldman
merged 7 commits into
master
from
fixes/project-window-interface-initialized
Oct 3, 2018
Merged
Project Window Interface Fixes #911
StanleyGoldman
merged 7 commits into
master
from
fixes/project-window-interface-initialized
Oct 3, 2018
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shana
previously requested changes
Sep 19, 2018
@@ -26,7 +26,7 @@ class ProjectWindowInterface : AssetPostprocessor | |||
private static CacheUpdateEvent lastRepositoryStatusChangedEvent; | |||
private static CacheUpdateEvent lastLocksChangedEvent; | |||
private static IRepository Repository { get { return manager != null ? manager.Environment.Repository : null; } } | |||
private static bool IsInitialized { get { return Repository != null && Repository.CurrentRemote.HasValue; } } | |||
private static bool IsInitialized { get { return Repository != null; } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is used to determine whether to show lock/unlock menus. If you're going to change this logic, you need to also fix how we enable those menus, because we can't lock/unlock if there's no remote.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
94824b1
to
7b7c5e5
Compare
daviwil
approved these changes
Oct 3, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this should fix the comment @shana had! 👍
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
How did this ever work?
Correcting statement to check status of initialization
Unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs
Line 29 in 14bab1c
Unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs
Lines 38 to 43 in 14bab1c
Unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs
Lines 87 to 90 in 14bab1c
This issue occurs because
IsInitialized
is being used to hook up events and control data validation.And is also being used to control the display of LFS menu items. So this logic needed to be separated out.
Fixes #910
Refreshing Asset database on
Repository.StatusEntriesChanged
Unity/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs
Lines 65 to 70 in 7b7c5e5
Calling refresh here is needed to refresh the asset explorer window. Thanks to a hint from @oboka in #907.
Fixes #900
Fixes #882
Fixes #907