Skip to content

Commit

Permalink
Fix maximize/unmaximize behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Jan 1, 2020
1 parent 9db9ab7 commit ad72285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Titlebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const Titlebar = (props) => {
<div className="window-icon-bg" onClick={() => { window.thisWindow.minimize() }}>
<div className="window-icon window-minimize"></div>
</div>
<div className="window-icon-bg" onClick={() => { window.thisWindow.maximize() }}>
<div className="window-icon-bg" onClick={() => { if(window.thisWindow.isMaximized()) { window.thisWindow.unmaximize() } else { window.thisWindow.maximize() } }}>
<div className="window-icon window-max-restore window-maximize"></div>
</div>
<div className="window-icon-bg window-close-bg" onClick={() => { window.thisWindow.close() }}>
Expand Down

0 comments on commit ad72285

Please sign in to comment.