avoid saving window bounds when on player (#964)

This commit is contained in:
Dan Flettre
2016-09-23 14:09:06 -05:00
committed by DC
parent 24fe033e2f
commit 8f827c9aae

View File

@@ -466,9 +466,11 @@ function onFullscreenChanged (e, isFullScreen) {
} }
function onWindowBoundsChanged (e, newBounds) { function onWindowBoundsChanged (e, newBounds) {
if (state.location.url() !== 'player') {
state.saved.bounds = newBounds state.saved.bounds = newBounds
dispatch('stateSave') dispatch('stateSave')
} }
}
function checkDownloadPath () { function checkDownloadPath () {
fs.stat(state.saved.prefs.downloadPath, function (err, stat) { fs.stat(state.saved.prefs.downloadPath, function (err, stat) {