This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ private void OnGUILogin()
153
153
GUILayout . BeginHorizontal ( ) ;
154
154
{
155
155
GUILayout . FlexibleSpace ( ) ;
156
- if ( GUILayout . Button ( loginButton ) || ( GUI . enabled && enterPressed ) )
156
+ if ( GUILayout . Button ( loginButton ) || ( ! isBusy && enterPressed ) )
157
157
{
158
158
GUI . FocusControl ( null ) ;
159
159
isBusy = true ;
@@ -195,7 +195,7 @@ private void OnGUI2FA()
195
195
Redraw ( ) ;
196
196
}
197
197
198
- if ( GUILayout . Button ( twofaButton ) || ( GUI . enabled && enterPressed ) )
198
+ if ( GUILayout . Button ( twofaButton ) || ( ! isBusy && enterPressed ) )
199
199
{
200
200
GUI . FocusControl ( null ) ;
201
201
isBusy = true ;
Original file line number Diff line number Diff line change @@ -310,7 +310,6 @@ private void DoOfferToInitializeRepositoryGUI()
310
310
GUILayout . BeginHorizontal ( ) ;
311
311
GUILayout . FlexibleSpace ( ) ;
312
312
313
- var enabled = GUI . enabled ;
314
313
EditorGUI . BeginDisabledGroup ( isBusy ) ;
315
314
{
316
315
if ( GUILayout . Button ( Localization . InitializeRepositoryButtonText , "Button" ) )
@@ -322,7 +321,6 @@ private void DoOfferToInitializeRepositoryGUI()
322
321
}
323
322
}
324
323
EditorGUI . EndDisabledGroup ( ) ;
325
- GUI . enabled = enabled ;
326
324
327
325
GUILayout . FlexibleSpace ( ) ;
328
326
GUILayout . EndHorizontal ( ) ;
You can’t perform that action at this time.
0 commit comments