When restoring the main window from the system tray, it always was in minimized state (at least on Windows). This patch should fix this. The window should restore to the same state as it was at the moment of minimizing it into the tray.
May be related to issue #8225
To reproduce the bug do following under Windows:
- In Options->Window enable “Minimize to the tray instead of the taskbar”
- Optionally enable “Minimize on close”, too
- Minimize the main window
- Klick on the tray icon (or right click on the tray icon and select Show/Hide)
The main window’s taskbar icon appears, but the window itself is not restored to its original size.
Expected behaviour: the window should appear.