tools: restore window state
dbartolini opened this issue · comments
https://developer.gnome.org/documentation/tutorials/save-state.html
Level Editor's main window creation:
crown/tools/level_editor/level_editor.vala
Line 767 in 3d505e0
Hey, been working on the code and have a question. Restore the window state to the size it was when it was left/focused away from? If so, when should the state be saved since the level editor window doesn't seem to be the one with the on_focus_out function? I'll commit my latest code to the pull request if needed for reference.
This is for saving/restoring window state across sessions, so you load the SJSON in LevelEditor.startup() and save in LevelEditor.shutdown(). It should be similar if not equal to _settings
's management.