From 6600a7e5adcebca5cb005c43c58398ab4c197d81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Climent?= Date: Fri, 17 Feb 2023 16:02:25 +0100 Subject: [PATCH] add more time intervals to choose in which to check for updates (fix #647) --- wingetui/uiSections.py | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/wingetui/uiSections.py b/wingetui/uiSections.py index bda1ce893..cea241243 100644 --- a/wingetui/uiSections.py +++ b/wingetui/uiSections.py @@ -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())