When user chooses Open, open files instead of revealing

This commit is contained in:
Alex Liebowitz 2017-01-11 02:35:14 -05:00
parent cddc1ecd22
commit 8d3e585306
2 changed files with 6 additions and 2 deletions

View file

@ -251,7 +251,7 @@ export let DownloadLink = React.createClass({
if (this.props.state == 'not-started') {
this.tryDownload();
} else if (this.props.state == 'done') {
lbry.revealFile(this.props.path);
lbry.openFile(this.props.path);
}
},
render: function() {

View file

@ -272,8 +272,12 @@ lbry.deleteFile = function(name, deleteTargetFile=true, callback) {
}, callback);
}
lbry.openFile = function(path, callback) {
lbry.call('open_file', {path: path}, callback);
}
lbry.revealFile = function(path, callback) {
lbry.call('reveal', { path: path }, callback);
lbry.call('reveal', {path: path}, callback);
}
lbry.getFileInfoWhenListed = function(name, callback, timeoutCallback, tryNum=0) {