Skip to content

Commit

Permalink
Fix app name
Browse files Browse the repository at this point in the history
  • Loading branch information
FLSoz committed Jul 9, 2022
1 parent 3074c21 commit bf8b8da
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "terratech-steam-mod-loader",
"productName": "ttsm",
"productName": "ttsmm",
"description": "Mod loader for TerraTech that handles Steam Workshop mod configurations",
"version": "1.5.6",
"version": "1.6.0",
"scripts": {
"build": "concurrently \"npm run build:main\" \"npm run build:renderer\"",
"build:main": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts",
Expand Down
4 changes: 2 additions & 2 deletions release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "terratech-steam-mod-loader",
"productName": "ttsm",
"productName": "ttsmm",
"description": "Mod loader for TerraTech that handles Steam Workshop mod configurations",
"version": "1.5.6",
"version": "1.6.0",
"main": "./dist/main/main.js",
"author": {
"name": "FLSoz",
Expand Down
2 changes: 1 addition & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const createWindow = async () => {
});

mainWindow.webContents.on('did-finish-load', () => {
const name = 'TerraTech Steam Mod Loader';
const name = 'TerraTech Steam Mod Manager';
log.info(`App Version: ${app.getVersion()}`);
log.info(`App Name: ${app.getName()}`);
const version = app.getVersion();
Expand Down
5 changes: 4 additions & 1 deletion src/renderer/components/collections/ModDetailsFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export default class ModDetailsFooter extends Component<ModDetailsFooterProps, {

getIgnoredRenderer(type: DependenciesTableType) {
const { appState, currentRecord, openNotification } = this.props;
const { config } = appState;
const { config, updateState } = appState;
const ignoreBadValidation: Map<ModErrorType, { [uid: string]: string[] }> = config.ignoredValidationErrors;

let errorType: ModErrorType | undefined;
Expand All @@ -364,6 +364,7 @@ export default class ModDetailsFooter extends Component<ModDetailsFooterProps, {

const { validateCollection } = this.props;
const saveUpdates = () => {
updateState({});
validateCollection();
api.updateConfig(config as AppConfig).catch((error) => {
api.logger.error(error);
Expand Down Expand Up @@ -421,6 +422,8 @@ export default class ModDetailsFooter extends Component<ModDetailsFooterProps, {
allIgnoredErrors[currentRecord.uid] = [record.uid];
this.setState({}, saveUpdates);
}
} else {
console.log(record);
}
}}
/>
Expand Down

0 comments on commit bf8b8da

Please sign in to comment.