Skip to content

Commit

Permalink
Fix error when downloading a single log file
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Dec 31, 2021
1 parent 356c62b commit 04f3d92
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Removed red background from side bar shadow.
Fixed error when downloading a single log file.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,8 @@ ipcMain.on("prompt-download-save", (_, files) => {
})
})

ipcMain.on("prompt-download-auto-open", (_, path) => {
var filename = path.basename(path)
ipcMain.on("prompt-download-auto-open", (_, filePath) => {
var filename = path.basename(filePath)
dialog.showMessageBox(downloadWindow, {
type: "question",
message: "Open log?",
Expand All @@ -655,7 +655,7 @@ ipcMain.on("prompt-download-auto-open", (_, path) => {
if (result.response == 0) {
downloadWindow.close()
lastIndexWindow.focus()
lastIndexWindow.send("open-file", path)
lastIndexWindow.send("open-file", filePath)
}
})
})
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "advantage-scope",
"productName": "Advantage Scope",
"version": "1.9.7",
"version": "1.9.8",
"description": "Logging tool from FRC Team 6328.",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 04f3d92

Please sign in to comment.