Skip to content

Commit

Permalink
Restore lost updater settings (#2108)
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu authored Oct 21, 2024
1 parent 0e84326 commit 29fa83c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vorta/store/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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',
Expand Down
5 changes: 5 additions & 0 deletions src/vorta/views/misc_tab.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import sys

from PyQt6 import QtCore, uic
from PyQt6.QtCore import Qt
Expand Down Expand Up @@ -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) + ':')
Expand Down

0 comments on commit 29fa83c

Please sign in to comment.