openItem => openPath

This commit is contained in:
Sean Yesmunt 2020-10-16 10:49:01 -04:00
parent b3f1b7919c
commit 3bb5c06f44
2 changed files with 3 additions and 2 deletions
static
ui/modal/modalOpenExternalResource

View file

@ -1453,5 +1453,6 @@
"lbry.com": "lbry.com", "lbry.com": "lbry.com",
"lbry.tech": "lbry.tech", "lbry.tech": "lbry.tech",
"GitHub": "GitHub", "GitHub": "GitHub",
"This link leads to an external website.": "This link leads to an external website.",
"--end--": "--end--" "--end--": "--end--"
} }

View file

@ -23,11 +23,11 @@ function ModalOpenExternalResource(props: Props) {
function openResource() { function openResource() {
// @if TARGET='app' // @if TARGET='app'
const { openExternal, openItem, showItemInFolder } = shell; const { openExternal, openPath, showItemInFolder } = shell;
if (uri) { if (uri) {
openExternal(uri); openExternal(uri);
} else if (path) { } else if (path) {
const success = openItem(path); const success = openPath(path);
if (!success) { if (!success) {
showItemInFolder(path); showItemInFolder(path);
} }