mirror of
https://github.com/slgobinath/SafeEyes.git
synced 2025-01-19 02:49:51 +01:00
Fix next break info at 12
This commit is contained in:
parent
223d4b029c
commit
e28271cd05
@ -82,7 +82,9 @@ class TrayIcon:
|
||||
|
||||
def next_break_time(self, dateTime):
|
||||
timeStr = dateTime.strftime("%l:%M")
|
||||
if dateTime.hour < 12:
|
||||
if dateTime.hour == 12:
|
||||
message = self.language['messages']['next_break_at_noon'].format(timeStr)
|
||||
elif dateTime.hour < 12:
|
||||
message = self.language['messages']['next_break_at_am'].format(timeStr)
|
||||
else:
|
||||
message = self.language['messages']['next_break_at_pm'].format(timeStr)
|
||||
|
@ -20,6 +20,7 @@
|
||||
"messages": {
|
||||
"ready_for_a_break": "Ready for a break in {} seconds",
|
||||
"safe_eyes_is_disabled": "Safe Eyes is disabled",
|
||||
"next_break_at_noon": "Next break at {}",
|
||||
"next_break_at_am": "Next break at {} AM",
|
||||
"next_break_at_pm": "Next break at {} PM"
|
||||
},
|
||||
@ -37,4 +38,4 @@
|
||||
"save": "Save",
|
||||
"cancel": "Cancel"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user