Compare commits

...

2 Commits

Author SHA1 Message Date
Porrumentzio 1ea361eb9c
Merge a209b947da into 766e9a9795 2024-02-19 08:10:36 -07:00
Porrumentzio a209b947da Change singular parameter for string on ~safeeyes/plugins/trayicon/plugin.py 2021-05-17 14:27:53 +02:00
1 changed files with 3 additions and 3 deletions

View File

@ -101,13 +101,13 @@ class TrayIcon:
time_unit = disable_option['unit'].lower()
if time_unit == 'seconds' or time_unit == 'second':
time_in_minutes = int(time_in_minutes / 60)
label = ['For %d Second', 'For %d Seconds']
label = ['For one second', 'For %d Seconds']
elif time_unit == 'minutes' or time_unit == 'minute':
time_in_minutes = int(time_in_minutes * 1)
label = ['For %d Minute', 'For %d Minutes']
label = ['For one minute', 'For %d Minutes']
elif time_unit == 'hours' or time_unit == 'hour':
time_in_minutes = int(time_in_minutes * 60)
label = ['For %d Hour', 'For %d Hours']
label = ['For one hour', 'For %d Hours']
else:
# Invalid unit
logging.error('Invalid unit in disable option: ' + str(disable_option))