Skip to content

Commit

Permalink
feat: ipc method to quit playing character
Browse files Browse the repository at this point in the history
  • Loading branch information
KatoakDR committed Sep 7, 2024
1 parent 61616e3 commit 8bf69fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/renderer/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const HomePage: React.FC = (): ReactNode => {
if (playingCharacter) {
const characterName = playingCharacter.characterName;
logger.info('quitting character', { characterName });
await window.api.sendCommand('quit');
await window.api.quitCharacter();
setPlayingCharacter(undefined);
}
}, [logger, playingCharacter]);
Expand Down

0 comments on commit 8bf69fb

Please sign in to comment.