Skip to content

Commit 7bd9f11

Browse files
committed
修复应用重启后时间限制自动消失的Bug
1 parent 8f80fb1 commit 7bd9f11

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

TimeControl/AppControl/App.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public App(string name, int time, int restInterval)
2424
appInformation.time = time;
2525
appInformation.name = name;
2626
appInformation.restInterval = restInterval;
27+
appInformation.timeLimit = 1;//设为1表示无限制
2728
}
2829

2930
public App(AppInformation appInformation)

TimeControl/Tools/TimeControlFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static List<App> ReadApps()
7878
}
7979
foreach (AppInformation information in infos)
8080
{
81-
if (information.timeLimit != 0)
81+
if (information.timeLimit != 1)
8282
apps.Add(new LimitedApp(information));
8383
else
8484
apps.Add(new App(information));

0 commit comments

Comments
 (0)