Skip to content

Commit

Permalink
fix: new instance from history causes weapon set in returns tab not t…
Browse files Browse the repository at this point in the history
…o show
  • Loading branch information
slazor committed Dec 25, 2021
1 parent a9b23cf commit 5e1e001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,14 @@ ipcMain.on('load-instance', async (_event, { sessionId, instanceId }) => {
if (session) {
const selectedInstanceId = (instanceId === 'new') ? null : instanceId;
session = await Session.Load(sessionId, selectedInstanceId);
session.setHuntingSet(activeHuntingSet);

if (instanceId === 'new') {
session.createNewInstance();
mainWindow.webContents.send('instance-new', session.getData());
}

session.setHuntingSet(activeHuntingSet);

mainWindow.webContents.send('instance-loaded', session.getData());
}
});
Expand Down

0 comments on commit 5e1e001

Please sign in to comment.