Cast menu

Fixes #301
This commit is contained in:
DC
2016-05-23 09:04:49 -07:00
parent 8b9346d767
commit 78a2ee4e85
3 changed files with 173 additions and 111 deletions

View File

@@ -197,9 +197,12 @@ function dispatch (action, ...args) {
if (action === 'openTorrentContextMenu') {
openTorrentContextMenu(args[0] /* infoHash */)
}
if (action === 'openDevice') {
if (action === 'startCasting') {
lazyLoadCast().open(args[0] /* deviceType */)
}
if (action === 'selectCastDevice') {
lazyLoadCast().selectDevice(args[0] /* index */)
}
if (action === 'closeDevice') {
lazyLoadCast().close()
}