Fix window bounds restore on OSx
This commit is contained in:
@@ -66,10 +66,10 @@ function setBounds (bounds, maximize) {
|
||||
// Maximize or minimize, if the second argument is present
|
||||
var willBeMaximized
|
||||
if (maximize === true) {
|
||||
windows.main.maximize()
|
||||
if (!windows.main.isMaximized) windows.main.maximize()
|
||||
willBeMaximized = true
|
||||
} else if (maximize === false) {
|
||||
windows.main.unmaximize()
|
||||
if (windows.main.isMaximized) windows.main.unmaximize()
|
||||
willBeMaximized = false
|
||||
} else {
|
||||
willBeMaximized = windows.main.isMaximized()
|
||||
|
||||
@@ -229,9 +229,11 @@ function dispatch (action, ...args) {
|
||||
jumpToTime(args[0] /* seconds */)
|
||||
}
|
||||
if (action === 'videoPlaying') {
|
||||
state.video.isPaused = false
|
||||
ipcRenderer.send('blockPowerSave')
|
||||
}
|
||||
if (action === 'videoPaused') {
|
||||
state.video.isPaused = true
|
||||
ipcRenderer.send('paused-video')
|
||||
ipcRenderer.send('unblockPowerSave')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user