From 0c2149b756ec7e66d33a759ad84e00450545023a Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Sat, 24 Aug 2019 17:15:51 +0200 Subject: [PATCH] fix: Show image in explorer --- src/renderer/emulator.tsx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/renderer/emulator.tsx b/src/renderer/emulator.tsx index d8aaec4..7c0e10e 100644 --- a/src/renderer/emulator.tsx +++ b/src/renderer/emulator.tsx @@ -234,12 +234,14 @@ export class Emulator extends React.Component<{}, EmulatorState> { return null; } - return { - this.setState({ isInfoDisplayed: !this.state.isInfoDisplayed }); - }} - /> + return ( + { + this.setState({ isInfoDisplayed: !this.state.isInfoDisplayed }); + }} + /> + ); } /** @@ -254,9 +256,11 @@ export class Emulator extends React.Component<{}, EmulatorState> { * Show the disk image on disk */ public showDiskImage() { + // Contents/Resources/app/dist/static const imagePath = path - .join(__dirname, "images/windows95.img") - .replace("app.asar", "app.asar.unpacked"); + .join(__dirname, "../../images/windows95.img"); + + console.log(`Showing disk image in ${imagePath}`);`` shell.showItemInFolder(imagePath); }