Skip to content

Commit

Permalink
fix filename on screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
the-database committed Apr 2, 2023
1 parent ff91e24 commit d84c2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ ipcMain.on('selected-image-for-screenshot', async (event, state) => {
.capturePage()
.then((img) => {

fs.writeFile(path.join(screenshotsPath, newCaptureDir, path.basename(image)),
fs.writeFile(path.join(screenshotsPath, newCaptureDir, `${state.selectedImageIndex+1}_${path.basename(image)}`),
img.toPNG(), "base64", function (err) {
if (err) throw err;
});
Expand Down

0 comments on commit d84c2ac

Please sign in to comment.