File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -474,6 +474,11 @@ private void OnGUI()
474
474
boldStyle . normal . textColor = new Color ( 0.3f , 1f , 0.3f ) ;
475
475
EditorGUILayout . LabelField ( "Installed" , boldStyle ) ;
476
476
477
+ if ( EditorApplication . isUpdating || EditorApplication . isCompiling )
478
+ {
479
+ GUI . enabled = false ;
480
+ }
481
+
477
482
// This is installed
478
483
if ( GUILayout . Button ( "Reinstall Latest" ) )
479
484
{
@@ -509,13 +514,28 @@ private void OnGUI()
509
514
Debug . LogError ( e . GetType ( ) . FullName ) ;
510
515
}
511
516
}
517
+
518
+ if ( EditorApplication . isUpdating || EditorApplication . isCompiling )
519
+ {
520
+ GUI . enabled = true ;
521
+ }
512
522
}
513
523
else
514
524
{
525
+ if ( EditorApplication . isUpdating || EditorApplication . isCompiling )
526
+ {
527
+ GUI . enabled = false ;
528
+ }
529
+
515
530
if ( GUILayout . Button ( "Install Latest" ) )
516
531
{
517
532
EditorCoroutine . Start ( InstallTransport ( i ) ) ;
518
533
}
534
+
535
+ if ( EditorApplication . isUpdating || EditorApplication . isCompiling )
536
+ {
537
+ GUI . enabled = true ;
538
+ }
519
539
}
520
540
521
541
EditorGUILayout . Space ( ) ;
You can’t perform that action at this time.
0 commit comments