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
This commit is contained in:
schroda
2024-04-23 18:17:06 +02:00
parent fd2946d1ae
commit 7ceb1af23e

View File

@@ -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;