fix back button exception
This commit is contained in:
parent
1ca51cc3a9
commit
75a33228e8
1 changed files with 3 additions and 1 deletions
|
|
@ -310,7 +310,9 @@ function setDimensions (dimensions) {
|
|||
|
||||
function restoreBounds () {
|
||||
electron.ipcRenderer.send('setAspectRatio', 0)
|
||||
electron.ipcRenderer.send('setBounds', state.view.mainWindowBounds, true)
|
||||
if (state.view.mainWindowBounds) {
|
||||
electron.ipcRenderer.send('setBounds', state.view.mainWindowBounds, true)
|
||||
}
|
||||
}
|
||||
|
||||
function onError (err) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue