Skip to content

Commit

Permalink
[UsageConfig] config.epg.histminutes, change "0 minutes" to "disabled"
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Nov 9, 2024
1 parent 7d2c0ab commit 788a1fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Components/UsageConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def wdhm(number):
for i, d in enumerate(units[2]):
if unit := int(number / d):
return "%s %s" % (unit, units[0 if unit == 1 else 1][i])
return _("0 minutes")
return _("disabled")
choices = [(i, wdhm(i)) for i in [i * 15 for i in range(0, 4)] + [i * 60 for i in range(1, 9)] + [i * 120 for i in range(5, 12)] + [i * 24 * 60 for i in range(1, 8)]]
config.epg.histminutes = ConfigSelection(default=0, choices=choices)

Expand Down

0 comments on commit 788a1fe

Please sign in to comment.