Skip to content

Commit a4bc25b

Browse files
committed
Fix: Open file location not working in some cases
1 parent 75d1c33 commit a4bc25b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
99
##### 🐛 Bug Fixes
1010

1111
- Dependency file-type not working [`7730e46`](https://github.com/ollm/OpenComic/commit/7730e46c8eb9e43196e50bd557f03132968eb534)
12+
- Open file location not working in some cases
1213

1314
## [v1.3.0](https://github.com/ollm/OpenComic/releases/tag/v1.3.0) (04-10-2024)
1415

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "opencomic",
33
"productName": "OpenComic",
4-
"version": "1.3.0",
4+
"version": "1.3.1",
55
"main": "scripts/main.js",
66
"type": "commonjs",
77
"keywords": [

scripts/reading/context-menu.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function openFileLocation()
2727
const vars = getVars();
2828

2929
if(vars.pathIsFolder)
30-
electron.shell.showItemInFolder(p.join(vars.currentPath, '.null'))
30+
electron.shell.openPath(vars.currentPath)
3131
else
3232
electron.shell.showItemInFolder(fileManager.firstCompressedFile(vars.currentPath))
3333
}
@@ -121,7 +121,7 @@ function saveAllImages(index = false)
121121
buttons: [
122122
{
123123
text: language.global.open,
124-
function: 'electron.shell.showItemInFolder(\''+escapeQuotes(escapeBackSlash(p.join(saveTo, '.null')), 'simples')+'\');',
124+
function: 'electron.shell.openPath(\''+escapeQuotes(escapeBackSlash(saveTo), 'simples')+'\');',
125125
},
126126
],
127127
});

0 commit comments

Comments
 (0)