move isFullScreen check to ipc.js
This commit is contained in:
@@ -45,7 +45,7 @@ function addTorrentFromPaste () {
|
|||||||
|
|
||||||
function setBounds (bounds) {
|
function setBounds (bounds) {
|
||||||
debug('setBounds %o', bounds)
|
debug('setBounds %o', bounds)
|
||||||
if (windows.main) {
|
if (windows.main && !windows.main.isFullScreen()) {
|
||||||
windows.main.setBounds(bounds, true)
|
windows.main.setBounds(bounds, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -350,8 +350,6 @@ function openAirplay (torrent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setDimensions (dimensions) {
|
function setDimensions (dimensions) {
|
||||||
if (state.isFullScreen) return
|
|
||||||
|
|
||||||
state.mainWindowBounds = electron.remote.getCurrentWindow().getBounds()
|
state.mainWindowBounds = electron.remote.getCurrentWindow().getBounds()
|
||||||
|
|
||||||
// Limit window size to screen size
|
// Limit window size to screen size
|
||||||
|
|||||||
Reference in New Issue
Block a user