-
Notifications
You must be signed in to change notification settings - Fork 453
Fixes to keep the publish view from loading twice #299
Conversation
aad063a to
70bdbd6
Compare
shana
left a comment
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.
Nitpick nancy on the prowl
| if (activeViewType != value) | ||
| { | ||
| ActiveView.OnDisable(); | ||
|
|
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.
Let's not have all this wasted vertical space, I don't have that much space on my laptop (i.e. totally redundant empty line)
|
|
||
| case PopupViewType.AuthenticationView: | ||
| return authenticationView; | ||
|
|
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.
Formatting change that doesn't need to be here
| { | ||
| case PopupViewType.PublishView: | ||
| return publishView; | ||
|
|
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.
Formatting change that doesn't need to be here
| public static PopupWindow Open(PopupViewType popupViewType, Action<bool> onClose = null) | ||
| { | ||
| var popupWindow = GetWindow<PopupWindow>(true); | ||
|
|
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.
Formatting change that doesn't need to be here
| public override void OnEnable() | ||
| { | ||
| base.OnEnable(); | ||
|
|
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.
/me eyes all this empty space
| if (GUILayout.Button(PublishViewCreateButton)) | ||
| { | ||
| GUI.FocusControl(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.
/me eyes all this empty space
e87ed67 to
80a81f7
Compare
80a81f7 to
f1b5d7e
Compare
The current way
PopulateViewis being called causes two concurrent calls toLoadKeychain.