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

Commit 4ec3c39

Browse files
Push button should be disabled if statusAhead == 0
1 parent 1c0261d commit 4ec3c39

File tree

1 file changed

+1
-1
lines changed
  • src/UnityExtension/Assets/Editor/GitHub.Unity/UI

1 file changed

+1
-1
lines changed

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.HistoryToolbarButtonStyle);

0 commit comments

Comments
 (0)