openItem => openPath
This commit is contained in:
parent
b3f1b7919c
commit
3bb5c06f44
2 changed files with 3 additions and 2 deletions
|
@ -1453,5 +1453,6 @@
|
|||
"lbry.com": "lbry.com",
|
||||
"lbry.tech": "lbry.tech",
|
||||
"GitHub": "GitHub",
|
||||
"This link leads to an external website.": "This link leads to an external website.",
|
||||
"--end--": "--end--"
|
||||
}
|
||||
|
|
|
@ -23,11 +23,11 @@ function ModalOpenExternalResource(props: Props) {
|
|||
|
||||
function openResource() {
|
||||
// @if TARGET='app'
|
||||
const { openExternal, openItem, showItemInFolder } = shell;
|
||||
const { openExternal, openPath, showItemInFolder } = shell;
|
||||
if (uri) {
|
||||
openExternal(uri);
|
||||
} else if (path) {
|
||||
const success = openItem(path);
|
||||
const success = openPath(path);
|
||||
if (!success) {
|
||||
showItemInFolder(path);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue