change window restore implement, get better display effect when restore to mini width

This commit is contained in:
Xen 2020-05-20 08:12:35 +08:00
parent 4b9d77d6ce
commit 5bb7a2e0f3
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ const createWindow = () => {
});
mainWindow.on("restore", () => {
mainWindow.setSize(
mainWindow.setContentSize(
store.get("window.width", widthDefault),
store.get("window.height", heightDefault)
);