Commit 9ff6b8e5 authored by Wade Walker's avatar Wade Walker Committed by Tasso Evangelista

Fix remember window state on load (#1080)

parent c993deae
......@@ -79,9 +79,19 @@ export default (name, defaults) => {
window.setSize(this.width, this.height, false);
}
this.isMaximized ? window.maximize() : window.unmaximize();
this.isMinimized ? window.minimize() : window.restore();
this.isHidden ? window.hide() : window.show();
if (this.isMaximized) {
window.maximize();
} else if (this.isMinimized) {
window.minimize();
} else {
window.restore();
}
if (this.isHidden) {
window.hide();
} else if (!this.isMinimized) {
window.show();
}
};
return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment