Explorar o código

Forces button to redraw before invoke Clicked event.

BDisp %!s(int64=3) %!d(string=hai) anos
pai
achega
ee119ffaac
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 ();
 				}