From 29fa83ceb5d39d7e146261c717295dbb91912835 Mon Sep 17 00:00:00 2001 From: Manu <3916435+m3nu@users.noreply.github.com> Date: Mon, 21 Oct 2024 10:44:05 +0100 Subject: [PATCH] Restore lost updater settings (#2108) --- src/vorta/store/settings.py | 5 +++++ src/vorta/views/misc_tab.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/vorta/store/settings.py b/src/vorta/store/settings.py index e2b75d5e..03a1cc54 100644 --- a/src/vorta/store/settings.py +++ b/src/vorta/store/settings.py @@ -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', diff --git a/src/vorta/views/misc_tab.py b/src/vorta/views/misc_tab.py index e7efa4ce..8cde5321 100644 --- a/src/vorta/views/misc_tab.py +++ b/src/vorta/views/misc_tab.py @@ -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) + ':')