From 7ceb1af23e49301a29bb960b4a35912106fb4c1c Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Tue, 23 Apr 2024 18:17:06 +0200 Subject: [PATCH] Prevent webUI update available dialog when auto update is enabled The automatic webUI update checks were not triggered in case the auto update setting was disabled but it was still possible for the update info dialog to be shown --- src/components/util/WebUIUpdateChecker.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/util/WebUIUpdateChecker.tsx b/src/components/util/WebUIUpdateChecker.tsx index fe6dcd70..3ef2b5e6 100644 --- a/src/components/util/WebUIUpdateChecker.tsx +++ b/src/components/util/WebUIUpdateChecker.tsx @@ -109,7 +109,8 @@ export const WebUIUpdateChecker = () => { setOpen(true); }, [webUIUpdateState]); - const isUpdateAvailable = updateChecker.handleUpdate && webUIUpdateData?.checkForWebUIUpdate.updateAvailable; + const isUpdateAvailable = + isAutoUpdateEnabled && updateChecker.handleUpdate && webUIUpdateData?.checkForWebUIUpdate.updateAvailable; if (isUpdateAvailable) { const isUpdateInProgress = webUIUpdateState === UpdateState.Downloading;