Skip to content

Commit

Permalink
Merge pull request #16498 from Nexus-Mods/mod-install-notification-fix
Browse files Browse the repository at this point in the history
fixed mod enable notification not appearing
  • Loading branch information
insomnious committed Sep 30, 2024
1 parent 697d81b commit 166a413
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/extensions/mod_management/InstallManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/mod_management/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1242,8 +1242,8 @@ function once(api: IExtensionApi) {
const options = optionsIn === undefined
? {}
: (typeof(optionsIn) === 'boolean')
? { allowAutoEnable: optionsIn }
: optionsIn;
? { allowAutoEnable: optionsIn }
: optionsIn;
onStartInstallDownload(api, installManager, downloadId, options, callback);
});

Expand Down

0 comments on commit 166a413

Please sign in to comment.