When user chooses Open, open files instead of revealing
This commit is contained in:
parent
cddc1ecd22
commit
8d3e585306
2 changed files with 6 additions and 2 deletions
|
@ -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() {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue