try to open the file's folder if open fails

This commit is contained in:
Jeremy Kauffman 2017-08-06 19:18:38 -04:00
parent a299ca2ddd
commit f395d7153a
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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));
}
};
}