Skip to content

Commit

Permalink
export missing actions to api
Browse files Browse the repository at this point in the history
  • Loading branch information
TanninOne committed Sep 28, 2018
1 parent 1efe453 commit 7b36696
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/actions/index.ts
Expand Up @@ -12,6 +12,7 @@ export * from '../extensions/download_management/actions/state';
export * from '../extensions/installer_fomod/actions/installerUI';

export * from '../extensions/mod_management/actions/settings';
export * from '../extensions/mod_management/actions/deployment';
export * from '../extensions/mod_management/actions/mods';

export * from '../extensions/nexus_integration/actions/account';
Expand Down
3 changes: 2 additions & 1 deletion src/extensions/mod_management/eventHandlers.ts
Expand Up @@ -147,7 +147,8 @@ export function onModsChanged(api: IExtensionApi, previous: IModTable, current:
&& ((previous[gameMode][modId].rules !== current[gameMode][modId].rules)
|| (previous[gameMode][modId].fileOverrides !== current[gameMode][modId].fileOverrides));

if (previous[gameMode] !== current[gameMode]) {
if ((previous[gameMode] !== current[gameMode])
&& !state.persistent.deployment.needToDeploy[gameMode]) {
if (Object.keys(current[gameMode]).find(rulesOrOverridesChanged) !== undefined) {
store.dispatch(setDeploymentNecessary(gameMode, true));
}
Expand Down
4 changes: 3 additions & 1 deletion src/extensions/mod_management/index.ts
Expand Up @@ -698,7 +698,9 @@ function once(api: IExtensionApi) {
if (state.settings.automation.deploy) {
deploymentTimer.schedule(undefined, false);
} else {
store.dispatch(setDeploymentNecessary(gameId, true));
if (!state.persistent.deployment.needToDeploy[gameId]) {
store.dispatch(setDeploymentNecessary(gameId, true));
}
}
});

Expand Down

0 comments on commit 7b36696

Please sign in to comment.