fix: 修复休息弹窗时间显示跳变缺陷

This commit is contained in:
2026-01-21 17:30:54 +08:00
parent 6baa367ef5
commit e506f41c72
2 changed files with 3 additions and 1 deletions

View File

@@ -494,6 +494,8 @@ namespace TimerApp
_restForm.SkipRequested += RestForm_SkipRequested; _restForm.SkipRequested += RestForm_SkipRequested;
} }
// 初始化显示时间,避免显示默认值
_restForm.UpdateTime(_monitor.RestDuration);
_restForm.Show(); _restForm.Show();
} }

View File

@@ -63,7 +63,7 @@ namespace TimerApp
// 初始大小会在CenterControls中动态调整 // 初始大小会在CenterControls中动态调整
this.lblTimer.Size = new System.Drawing.Size(400, 180); this.lblTimer.Size = new System.Drawing.Size(400, 180);
this.lblTimer.TabIndex = 1; this.lblTimer.TabIndex = 1;
this.lblTimer.Text = "01:00"; this.lblTimer.Text = "--:--";
this.lblTimer.TextAlign = ContentAlignment.MiddleCenter; this.lblTimer.TextAlign = ContentAlignment.MiddleCenter;
// //