From 8ae88eb10a6f09b1023778dc178644e2b80dad89 Mon Sep 17 00:00:00 2001 From: deeplow Date: Mon, 21 Aug 2023 14:03:35 +0100 Subject: [PATCH] Ensure updates checkbox updated after updates accepted Ensure the status of the toggle updates checkbox is updated, after the user is prompted to enable updates. --- dangerzone/gui/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dangerzone/gui/__init__.py b/dangerzone/gui/__init__.py index f0249ac..c35d232 100644 --- a/dangerzone/gui/__init__.py +++ b/dangerzone/gui/__init__.py @@ -132,6 +132,10 @@ def gui_main( else: log.debug("Will not check for updates, based on updater settings") + # Ensure the status of the toggle updates checkbox is updated, after the user is + # prompted to enable updates. + window.toggle_updates_action.setChecked(bool(updater.check)) + if filenames: open_files(filenames)