Skip to content

Commit c995ba0

Browse files
committed
chore: Components refresh, again
1 parent f9750bd commit c995ba0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

WndMain.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ public WndMain()
6767

6868
// 设置窗体标题
6969
this.Text = $"OpenLuckyRandom ({_architecture}) {(_isDebugBuild ? "[Debug]" : "")}";
70-
71-
// 组件整体刷新
72-
this.Refresh();
7370
}
7471

7572
// 加载摄像头设备
@@ -128,6 +125,10 @@ private void LoadFaceCascade(string fileName)
128125
{
129126
currentStatusLabel.Text = $"成功加载人脸级联分类器: {fileName}";
130127
}
128+
129+
// 刷新显示
130+
this.Invalidate(true);
131+
this.Update();
131132
}
132133
catch (Exception ex)
133134
{

0 commit comments

Comments
 (0)