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:
parent
0e8432602d
commit
29fa83ceb5
2 changed files with 10 additions and 0 deletions
|
@ -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',
|
||||
|
|
|
@ -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) + ':')
|
||||
|
|
Loading…
Reference in a new issue