fix bug, function needs to be invoked
This commit is contained in:
committed by
GitHub
parent
7251967ef5
commit
6bf38611e8
@@ -151,7 +151,7 @@ function setBounds (bounds, maximize) {
|
|||||||
main.win.unmaximize()
|
main.win.unmaximize()
|
||||||
}
|
}
|
||||||
|
|
||||||
const willBeMaximized = typeof maximize === 'boolean' ? maximize : main.win.isMaximized
|
const willBeMaximized = typeof maximize === 'boolean' ? maximize : main.win.isMaximized()
|
||||||
// Assuming we're not maximized or maximizing, set the window size
|
// Assuming we're not maximized or maximizing, set the window size
|
||||||
if (!willBeMaximized) {
|
if (!willBeMaximized) {
|
||||||
log(`setBounds: setting bounds to ${JSON.stringify(bounds)}`)
|
log(`setBounds: setting bounds to ${JSON.stringify(bounds)}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user