fix: 修复休息弹窗时间显示跳变缺陷
This commit is contained in:
@@ -494,6 +494,8 @@ namespace TimerApp
|
||||
_restForm.SkipRequested += RestForm_SkipRequested;
|
||||
}
|
||||
|
||||
// 初始化显示时间,避免显示默认值
|
||||
_restForm.UpdateTime(_monitor.RestDuration);
|
||||
_restForm.Show();
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user