Stop casting if you hit ESC or Back while casting

This commit is contained in:
DC
2016-04-06 02:30:21 -07:00
parent aac862cddf
commit 5022877b04

View File

@@ -814,7 +814,11 @@ function openPlayerFromActiveTorrent (torrentSummary, index, timeout, cb) {
function closePlayer (cb) {
state.window.title = config.APP_WINDOW_TITLE
update()
update() /* needed for OSX: toggleFullScreen animation w/ correct title */
if (isCasting()) {
Cast.close()
}
if (state.window.isFullScreen) {
dispatch('toggleFullScreen', false)