-
Notifications
You must be signed in to change notification settings - Fork 448
Fix to update header when remote is removed #95
Fix to update header when remote is removed #95
Conversation
… into them Use OnEnable/OnDisable instead of OnShow/OnHide, it's more consistent with Unity's naming and our own window class. AuthenticationView was missing some calls from the window, fixicate.
| RepositoryManager.ActiveRemote.Value.Name.Should().Be("origin"); | ||
| RepositoryManager.ActiveRemote.Value.Url.Should().Be("https://github.com/EvilStanleyGoldman/IOTestsRepo.git"); | ||
|
|
||
| RepositoryManager.Repository.CloneUrl.Should().Be("https://github.com/EvilStanleyGoldman/IOTestsRepo"); |
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.
@shana would you have expected this value?
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.
Yeah? That looks about right
Refactoring BaseWindow and Subview to better handle initialization
| RepositoryManager.ActiveRemote.HasValue.Should().BeFalse(); | ||
|
|
||
| RepositoryManager.Repository.CloneUrl.Should().BeNull(); | ||
| RepositoryManager.Repository.Owner.Should().BeNull(); |
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.
The cause of the bug is the reason why these tests fail
Adding git fetch button
…r-view-git-remote-update # Conflicts: # src/UnityExtension/Assets/Editor/GitHub.Unity/UI/SettingsView.cs
|
|
||
| GUILayout.FlexibleSpace(); | ||
|
|
||
| GUI.enabled = currentRemote != 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.
Should get into the habit of using EditorGUI.Begin/EndDisabledGroup rather than setting GUI.enabled directly. Those utility methods handle nesting properly. (There's also EditorGUI.DisabledScope, for an IDisposable way of doing things.)
|
This PR needs more detail on exactly what is going wrong, with repro steps. |
|
Actually, closing this as it has nothing other than tests, might as well fix the original branch. |
Depends on: