Skip to content

Commit

Permalink
Update center screen
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow committed Oct 19, 2019
1 parent 0a71821 commit 0eadf3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const createMainWindow = async () => {
maximizable: false,
minimizable: false,
resizable: false,
skipTaskbar: true,
skipTaskbar: false,
transparent: true,
show: false,
width: 200,
Expand Down Expand Up @@ -147,7 +147,10 @@ const setDockVisible = visible => {
}

const centerWindow = () => {
mainWindow.hide()
mainWindow.center()
mainWindow.setBounds({y: mainWindow.getBounds().y + 250})
mainWindow.show()
saveBounds()
}

Expand Down

0 comments on commit 0eadf3c

Please sign in to comment.