Remove torrent data support (#641)

* add moveItemToTrash to shell

* delete torrent/data + context menu items
This commit is contained in:
Mathias Rasmussen
2016-06-23 03:58:16 +02:00
committed by DC
parent 8e64e4120b
commit 1af7e4ef19
3 changed files with 35 additions and 2 deletions

View File

@@ -1,7 +1,8 @@
module.exports = {
openExternal,
openItem,
showItemInFolder
showItemInFolder,
moveItemToTrash
}
var electron = require('electron')
@@ -30,3 +31,11 @@ function showItemInFolder (path) {
log(`showItemInFolder: ${path}`)
electron.shell.showItemInFolder(path)
}
/**
* Move the given file to trash and returns a boolean status for the operation.
*/
function moveItemToTrash (path) {
log(`moveItemToTrash: ${path}`)
electron.shell.moveItemToTrash(path)
}