Show filename in window title. Fix #245

Also fix error popover z index
This commit is contained in:
DC
2016-03-27 16:10:26 -07:00
parent 127b1577ac
commit ac7431292e
4 changed files with 5 additions and 3 deletions

View File

@@ -741,6 +741,7 @@ body.drag .torrent-placeholder span {
margin: 0;
width: 100%;
overflow: hidden;
z-index: 1;
}
.app.hide-header .error-popover {

View File

@@ -767,7 +767,7 @@ function openPlayer (infoHash, index, cb) {
if (timedOut) return update()
// otherwise, play the video
state.window.title = torrentSummary.name
state.window.title = torrentSummary.files[state.playing.fileIndex].name
update()
ipcRenderer.send('onPlayerOpen')

View File

@@ -4,9 +4,9 @@ module.exports = {
dispatcher
}
// _memoize most of our event handlers, which are functions in the form
// Memoize most of our event handlers, which are functions in the form
// () => dispatch(<args>)
// ... this prevents virtual-dom from updating tons of listeners on every update()
// ... this prevents virtual-dom from updating every listener on every update()
var _dispatchers = {}
var _dispatch = () => {}

View File

@@ -30,6 +30,7 @@ module.exports = {
isPaused: true,
mouseStationarySince: 0 /* Unix time in ms */
},
audioInfo: null, /* set whenever an audio file is playing */
pendingTorrents: {}, /* infohash to WebTorrent handle */
devices: { /* playback devices like Chromecast and AppleTV */
airplay: null, /* airplay client. finds and manages AppleTVs */