Maximized window Maximize button should be changed to Restore button

When Obsidian window is maximized, the Maximize button (a button with a square) should be displayed as Restore (two squares), change state. Otherwise in some cases there is no way to tell if the window is maximized and forces a user to try to maximize it and instead get a restored smaller window. Time lost, frustration got.