Remember the editor window position and size across restarts
Created by: Calinou
Some notes:
- For the purposes of configuration saving, exiting while the editor is fullscreen will be saved as maximized.
-
The configuration accounts for multiple monitors and will save the window position relative to the current monitor. When reopening the editor, it will open on the monitor that's currently active.- TODO: Remove this and just use absolute coordinates, as most other applications seem to use absolute coordinates.
- If the editor isn't maximized, the window will be resized while the splash screen is displayed. This could be solved by moving the configuration loading code to
main.cpp
, but I don't know how this could be done since it needs to be done early enough while getting the file path from the EditorSettings singleton.
This closes #5114.