Dialogs on do not show a title on OS X, so the window title is used instead.

This commit is contained in:
Feross Aboukhadijeh
2016-05-28 19:09:05 -07:00
parent 8b773c5f59
commit 7833f6bbc4
2 changed files with 40 additions and 9 deletions

View File

@@ -377,6 +377,9 @@ function dispatch (action, ...args) {
if (action === 'saveState') {
saveState()
}
if (action === 'setTitle') {
state.window.title = args[0] /* title */
}
// Update the virtual-dom, unless it's just a mouse move event
if (action !== 'mediaMouseMoved' || showOrHidePlayerControls()) {