Skip to content

Commit

Permalink
添加超时未处理休息统计
Browse files Browse the repository at this point in the history
  • Loading branch information
noberumotto committed Jun 3, 2022
1 parent 5754223 commit 3237baf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Local/ProjectEye/Core/Service/MainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ private void busy_timer_Tick(object sender, EventArgs e)
WindowManager.Hide("TipWindow");
//进入离开状态
OnLeave();

// 统计休息时长
if (config.options.General.Data)
{
statistic.Add(StatisticType.ResetTime, config.options.General.RestTime);
}
}

private void back_timer_Tick(object sender, EventArgs e)
Expand Down

0 comments on commit 3237baf

Please sign in to comment.