From e506f41c725176af31259197a7526a21739c72f6 Mon Sep 17 00:00:00 2001 From: Solin Date: Wed, 21 Jan 2026 17:30:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BC=91=E6=81=AF?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E8=B7=B3?= =?UTF-8?q?=E5=8F=98=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainForm.cs | 2 ++ RestForm.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MainForm.cs b/MainForm.cs index e12cb2a..4882b49 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -494,6 +494,8 @@ namespace TimerApp _restForm.SkipRequested += RestForm_SkipRequested; } + // 初始化显示时间,避免显示默认值 + _restForm.UpdateTime(_monitor.RestDuration); _restForm.Show(); } diff --git a/RestForm.cs b/RestForm.cs index fb219c1..2a2c4f1 100644 --- a/RestForm.cs +++ b/RestForm.cs @@ -63,7 +63,7 @@ namespace TimerApp // 初始大小,会在CenterControls中动态调整 this.lblTimer.Size = new System.Drawing.Size(400, 180); this.lblTimer.TabIndex = 1; - this.lblTimer.Text = "01:00"; + this.lblTimer.Text = "--:--"; this.lblTimer.TextAlign = ContentAlignment.MiddleCenter; //