Selaa lähdekoodia

Forces button to redraw before invoke Clicked event.

BDisp 3 vuotta sitten
vanhempi
commit
ee119ffaac
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      Terminal.Gui/Views/Button.cs

+ 1 - 0
Terminal.Gui/Views/Button.cs

@@ -328,6 +328,7 @@ namespace Terminal.Gui {
 					if (!HasFocus) {
 						SetFocus ();
 						SetNeedsDisplay ();
+						Redraw (Bounds);
 					}
 					OnClicked ();
 				}