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.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--"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue