Torrent details
Show file list, open folder containing downloaded files, open individual files, play/pause individual videos
This commit is contained in:
11
main/ipc.js
11
main/ipc.js
@@ -4,13 +4,13 @@ module.exports = {
|
||||
|
||||
var debug = require('debug')('webtorrent-app:ipcMain')
|
||||
var electron = require('electron')
|
||||
var menu = require('./menu')
|
||||
var windows = require('./windows')
|
||||
|
||||
var app = electron.app
|
||||
var ipcMain = electron.ipcMain
|
||||
var powerSaveBlocker = electron.powerSaveBlocker
|
||||
|
||||
var menu = require('./menu')
|
||||
var windows = require('./windows')
|
||||
|
||||
// has to be a number, not a boolean, and undefined throws an error
|
||||
var powerSaveBlocked = 0
|
||||
|
||||
@@ -56,6 +56,11 @@ function init () {
|
||||
powerSaveBlocker.stop(powerSaveBlocked)
|
||||
}
|
||||
})
|
||||
|
||||
ipcMain.on('openItem', function (e, path) {
|
||||
console.log('opening file or folder: ' + path)
|
||||
electron.shell.openItem(path)
|
||||
})
|
||||
}
|
||||
|
||||
function setBounds (bounds) {
|
||||
|
||||
Reference in New Issue
Block a user