We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9750bd commit c995ba0Copy full SHA for c995ba0
1 file changed
WndMain.cs
@@ -67,9 +67,6 @@ public WndMain()
67
68
// 设置窗体标题
69
this.Text = $"OpenLuckyRandom ({_architecture}) {(_isDebugBuild ? "[Debug]" : "")}";
70
-
71
- // 组件整体刷新
72
- this.Refresh();
73
}
74
75
// 加载摄像头设备
@@ -128,6 +125,10 @@ private void LoadFaceCascade(string fileName)
128
125
{
129
126
currentStatusLabel.Text = $"成功加载人脸级联分类器: {fileName}";
130
127
+
+ // 刷新显示
+ this.Invalidate(true);
131
+ this.Update();
132
133
catch (Exception ex)
134
0 commit comments