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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user