Don't show auto-update toast if no extensions installed

This commit is contained in:
Cohee
2023-11-26 00:52:00 +02:00
parent 0648da8d05
commit 50322ed8b0

View File

@ -846,6 +846,10 @@ async function checkForExtensionUpdates(force) {
}
async function autoUpdateExtensions() {
if (!Object.values(manifests).some(x => x.auto_update)) {
return;
}
toastr.info('Auto-updating extensions. This may take several minutes.', 'Please wait...', { timeOut: 10000, extendedTimeOut: 20000 });
const promises = [];
for (const [id, manifest] of Object.entries(manifests)) {