try to open the file's folder if open fails
This commit is contained in:
parent
a299ca2ddd
commit
f395d7153a
2 changed files with 5 additions and 1 deletions
|
@ -13,6 +13,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
|
|||
|
||||
### Changed
|
||||
* Some form field refactoring as we progress towards form sanity.
|
||||
* When an "Open" button is clicked on a show page, if the file fails to open, the app will try to open the file's folder.
|
||||
*
|
||||
|
||||
### Fixed
|
||||
|
|
|
@ -72,7 +72,10 @@ export function doFileList() {
|
|||
|
||||
export function doOpenFileInShell(fileInfo) {
|
||||
return function(dispatch, getState) {
|
||||
shell.openItem(fileInfo.download_path);
|
||||
const success = shell.openItem(fileInfo.download_path);
|
||||
if (!success) {
|
||||
dispatch(doOpenFileInFolder(fileInfo));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue