Skip to content

Commit

Permalink
add more time intervals to choose in which to check for updates (fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Feb 17, 2023
1 parent f8bce96 commit 6600a7e
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions wingetui/uiSections.py
Original file line number Diff line number Diff line change
Expand Up @@ -2441,18 +2441,26 @@ def restartElevenClockByLangChange():
frequencyCombo = QSettingsComboBox(_("Check for updates every:"), buttonEnabled=False)

times = {
_("30 minutes"): "1800",
_("1 hour"): "3600",
_("2 hours"): "7200",
_("4 hours"): "14400",
_("8 hours"): "28800",
_("{0} minutes").format(10): "600",
_("{0} minutes").format(30): "1800",
_("1 hour") : "3600",
_("{0} hours").format(2) : "7200",
_("{0} hours").format(4) : "14400",
_("{0} hours").format(8) : "28800",
_("{0} hours").format(12) : "43200",
_("{0} hours").format(24) : "86400",
_("{0} hours").format(48) :"172800",
}
invertedTimes = {
"1800" : _("30 minutes"),
"3600" : _("1 hour"),
"7200" : _("2 hours"),
"14400": _("4 hours"),
"28800": _("8 hours"),
"600" : _("{0} minutes").format(10),
"1800" : _("{0} minutes").format(30),
"3600" : _("1 hour"),
"7200" : _("{0} hours").format(2),
"14400" : _("{0} hours").format(4),
"28800" : _("{0} hours").format(8),
"43200" : _("{0} hours").format(12),
"86400" : _("{0} hours").format(24),
"172800": _("{0} hours").format(48)
}

frequencyCombo.setEnabled(checkForUpdates.isChecked())
Expand Down

0 comments on commit 6600a7e

Please sign in to comment.