mirror of
https://github.com/borgbase/vorta
synced 2025-03-11 14:49:16 +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')
|
startup = trans_late('settings', 'Startup')
|
||||||
information = trans_late('settings', 'Information')
|
information = trans_late('settings', 'Information')
|
||||||
security = trans_late('settings', 'Security')
|
security = trans_late('settings', 'Security')
|
||||||
|
updates = trans_late('settings', 'Updates')
|
||||||
|
|
||||||
# Default settings for all platforms.
|
# Default settings for all platforms.
|
||||||
settings = [
|
settings = [
|
||||||
|
@ -144,13 +145,17 @@ def get_misc_settings() -> List[Dict[str, str]]:
|
||||||
'key': 'check_for_updates',
|
'key': 'check_for_updates',
|
||||||
'value': True,
|
'value': True,
|
||||||
'type': 'checkbox',
|
'type': 'checkbox',
|
||||||
|
'group': updates,
|
||||||
'label': trans_late('settings', 'Check for updates on startup'),
|
'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',
|
'key': 'updates_include_beta',
|
||||||
'value': False,
|
'value': False,
|
||||||
'type': 'checkbox',
|
'type': 'checkbox',
|
||||||
|
'group': updates,
|
||||||
'label': trans_late('settings', 'Include pre-release versions when checking for 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',
|
'key': 'check_full_disk_access',
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
|
import sys
|
||||||
|
|
||||||
from PyQt6 import QtCore, uic
|
from PyQt6 import QtCore, uic
|
||||||
from PyQt6.QtCore import Qt
|
from PyQt6.QtCore import Qt
|
||||||
|
@ -76,6 +77,10 @@ class MiscTab(MiscTabBase, MiscTabUI, BackupProfileMixin):
|
||||||
self.checkboxLayout.setItem(i, QFormLayout.ItemRole.LabelRole, spacer)
|
self.checkboxLayout.setItem(i, QFormLayout.ItemRole.LabelRole, spacer)
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
# Skip Update settings on non-darwin
|
||||||
|
if sys.platform != 'darwin' and group.group == 'Updates':
|
||||||
|
continue
|
||||||
|
|
||||||
# add label for next group
|
# add label for next group
|
||||||
label = QLabel()
|
label = QLabel()
|
||||||
label.setText(translate('settings', group.group) + ':')
|
label.setText(translate('settings', group.group) + ':')
|
||||||
|
|
Loading…
Add table
Reference in a new issue