浏览代码

Forces button to redraw before invoke Clicked event.

BDisp 3 年之前
父节点
当前提交
ee119ffaac
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 ();
 				}