Skip to content

Commit

Permalink
#18
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 15, 2024
1 parent 9464a2e commit be3309e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<li><a (click)="closeMenu()" [swal]="changeModAuthor">Change Mod Author</a></li>

<li class="menu-title"><a>Mod I/O</a></li>
<li><a (click)="closeMenu(); electronService.send('IMPORT_MOD')">Load/Import
<li><a (click)="closeMenu(); electronService.send('LOAD_MOD')">Load/Import
Mod</a></li>
<li><a (click)="closeMenu(); attemptExport();">Export
Mod</a></li>
Expand Down
4 changes: 3 additions & 1 deletion src/app/services/electron.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ export class ElectronService {
this.modService.setJSON(jsonData.name as string, jsonData.data);
});

// the mod has no backup, which means it was a clean export. it might need some reformatting to get it back in
window.api.receive('loadmod', (mod: IModKit) => {

Check failure on line 72 in src/app/services/electron.service.ts

View workflow job for this annotation

GitHub Actions / build (20)

'mod' is defined but never used

Check failure on line 72 in src/app/services/electron.service.ts

View workflow job for this annotation

GitHub Actions / build (20)

'mod' is defined but never used

Check failure on line 72 in src/app/services/electron.service.ts

View workflow job for this annotation

GitHub Actions / build (20)

'mod' is defined but never used
this.modService.updateMod(mod);
// this.modService.updateMod(mod);
});

// import the mod raw from the backup.
window.api.receive('importmod', (mod: IModKit) => {
this.modService.updateMod(mod.meta._backup as IModKit);
});
Expand Down

0 comments on commit be3309e

Please sign in to comment.