change window restore implement, get better display effect when restore to mini width
This commit is contained in:
parent
4b9d77d6ce
commit
5bb7a2e0f3
|
@ -59,7 +59,7 @@ const createWindow = () => {
|
|||
});
|
||||
|
||||
mainWindow.on("restore", () => {
|
||||
mainWindow.setSize(
|
||||
mainWindow.setContentSize(
|
||||
store.get("window.width", widthDefault),
|
||||
store.get("window.height", heightDefault)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue