mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 23:43:22 +01:00
Add some comments
This commit is contained in:
parent
8980e532f2
commit
00c2f21b93
@ -55,11 +55,13 @@ let contentSaved = false
|
||||
|
||||
|
||||
async function createWindow() {
|
||||
// default window size
|
||||
let windowConfig = {
|
||||
width: 900,
|
||||
height: 680,
|
||||
isMaximized: false,
|
||||
}
|
||||
// read any stored window settings from config
|
||||
Object.assign(windowConfig, CONFIG.get("windowConfig"))
|
||||
|
||||
win = new BrowserWindow(Object.assign({
|
||||
@ -78,6 +80,8 @@ async function createWindow() {
|
||||
},
|
||||
|
||||
}, windowConfig))
|
||||
|
||||
// maximize window if it was maximized last time
|
||||
if (windowConfig.isMaximized) {
|
||||
win.maximize()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user