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

Commit f861fa5

Browse files
authored
Merge pull request #767 from github-for-unity/fixes/action-bar-push-button
Action Bar Push Button Fixes
2 parents c18c30a + 1272bb3 commit f861fa5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GitHub.Api/Localization.resx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@
181181
<value>Pull</value>
182182
</data>
183183
<data name="PullButtonCount" xml:space="preserve">
184-
<value />
184+
<value>Pull ({0})</value>
185185
</data>
186186
<data name="PushButton" xml:space="preserve">
187187
<value>Push</value>
188188
</data>
189189
<data name="PushButtonCount" xml:space="preserve">
190-
<value />
190+
<value>Push ({0})</value>
191191
</data>
192192
<data name="PullConfirmTitle" xml:space="preserve">
193193
<value>Pull Changes?</value>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ private void DoActionbarGUI()
505505
EditorGUI.EndDisabledGroup();
506506

507507
// Push button
508-
EditorGUI.BeginDisabledGroup(currentRemoteName == null || statusBehind != 0);
508+
EditorGUI.BeginDisabledGroup(currentRemoteName == null || statusAhead == 0);
509509
{
510510
var pushButtonText = statusAhead > 0 ? String.Format(Localization.PushButtonCount, statusAhead) : Localization.PushButton;
511511
var pushClicked = GUILayout.Button(pushButtonText, Styles.ToolbarButtonStyle);

0 commit comments

Comments
 (0)