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

Commit bbd969f

Browse files
committed
- Removed the last occurrences of GUI.enabled
1 parent f46c1d6 commit bbd969f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private void OnGUILogin()
153153
GUILayout.BeginHorizontal();
154154
{
155155
GUILayout.FlexibleSpace();
156-
if (GUILayout.Button(loginButton) || (GUI.enabled && enterPressed))
156+
if (GUILayout.Button(loginButton) || (!isBusy && enterPressed))
157157
{
158158
GUI.FocusControl(null);
159159
isBusy = true;
@@ -195,7 +195,7 @@ private void OnGUI2FA()
195195
Redraw();
196196
}
197197

198-
if (GUILayout.Button(twofaButton) || (GUI.enabled && enterPressed))
198+
if (GUILayout.Button(twofaButton) || (!isBusy && enterPressed))
199199
{
200200
GUI.FocusControl(null);
201201
isBusy = true;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ private void DoOfferToInitializeRepositoryGUI()
310310
GUILayout.BeginHorizontal();
311311
GUILayout.FlexibleSpace();
312312

313-
var enabled = GUI.enabled;
314313
EditorGUI.BeginDisabledGroup(isBusy);
315314
{
316315
if (GUILayout.Button(Localization.InitializeRepositoryButtonText, "Button"))
@@ -322,7 +321,6 @@ private void DoOfferToInitializeRepositoryGUI()
322321
}
323322
}
324323
EditorGUI.EndDisabledGroup();
325-
GUI.enabled = enabled;
326324

327325
GUILayout.FlexibleSpace();
328326
GUILayout.EndHorizontal();

0 commit comments

Comments
 (0)