1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 07:43:09 +00:00

Restore lost updater settings (#2108)

This commit is contained in:
Manu 2024-10-21 10:44:05 +01:00 committed by GitHub
parent 0e8432602d
commit 29fa83ceb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -18,6 +18,7 @@ def get_misc_settings() -> List[Dict[str, str]]:
startup = trans_late('settings', 'Startup')
information = trans_late('settings', 'Information')
security = trans_late('settings', 'Security')
updates = trans_late('settings', 'Updates')
# Default settings for all platforms.
settings = [
@ -144,13 +145,17 @@ def get_misc_settings() -> List[Dict[str, str]]:
'key': 'check_for_updates',
'value': True,
'type': 'checkbox',
'group': updates,
'label': trans_late('settings', 'Check for updates on startup'),
'tooltip': trans_late('settings', 'Uses Sparkle to find new updates published on Github.'),
},
{
'key': 'updates_include_beta',
'value': False,
'type': 'checkbox',
'group': updates,
'label': trans_late('settings', 'Include pre-release versions when checking for updates'),
'tooltip': trans_late('settings', 'Needs Vorta restart to apply.'),
},
{
'key': 'check_full_disk_access',

View file

@ -1,4 +1,5 @@
import logging
import sys
from PyQt6 import QtCore, uic
from PyQt6.QtCore import Qt
@ -76,6 +77,10 @@ def populate(self):
self.checkboxLayout.setItem(i, QFormLayout.ItemRole.LabelRole, spacer)
i += 1
# Skip Update settings on non-darwin
if sys.platform != 'darwin' and group.group == 'Updates':
continue
# add label for next group
label = QLabel()
label.setText(translate('settings', group.group) + ':')