diff --git a/src/extensions/mod_management/InstallManager.ts b/src/extensions/mod_management/InstallManager.ts index afc2d232e..ea2b26fc5 100644 --- a/src/extensions/mod_management/InstallManager.ts +++ b/src/extensions/mod_management/InstallManager.ts @@ -428,7 +428,8 @@ class InstallManager { return api.emitAndAwait('install-extension-from-download', archiveId) .then(() => Bluebird.reject(new UserCanceled())); } - installContext = new InstallContext(gameId, api, allowAutoDeploy); + const silent = unattended && allowAutoDeploy && enable; + installContext = new InstallContext(gameId, api, silent); installContext.startIndicator(baseName); let dlGame: string | string[] = getSafe(fullInfo, ['download', 'game'], gameId); if (Array.isArray(dlGame)) { diff --git a/src/extensions/mod_management/index.ts b/src/extensions/mod_management/index.ts index fbe80300e..4663754cc 100644 --- a/src/extensions/mod_management/index.ts +++ b/src/extensions/mod_management/index.ts @@ -1248,8 +1248,8 @@ function once(api: IExtensionApi) { const options = optionsIn === undefined ? {} : (typeof(optionsIn) === 'boolean') - ? { allowAutoEnable: optionsIn } - : optionsIn; + ? { allowAutoEnable: optionsIn } + : optionsIn; onStartInstallDownload(api, installManager, downloadId, options, callback); });