Skip to content

Commit

Permalink
FIX that the clear interval could not be set to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradSun committed May 25, 2023
1 parent fc1c677 commit 8cc2808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NuwaClient/Preferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct Preferences {
var clearDuration: TimeInterval {
get {
let duration = UserDefaults.standard.double(forKey: UserClearDuration)
if duration > 0 {
if duration >= 0 {
return duration
}
return 360
Expand Down

0 comments on commit 8cc2808

Please sign in to comment.