save window location and resolution on shutdown

master
BodgeMaster 2022-02-15 01:58:50 +01:00
parent 0fe719782c
commit 027a88342e
1 changed files with 5 additions and 0 deletions

View File

@ -252,4 +252,9 @@ def rebuild_menu():
rebuild_menu()
def handle_exit():
set_configuration_value("window geometry", main_window.geometry())
main_window.destroy()
main_window.protocol("WM_DELETE_WINDOW", handle_exit)
main_window.mainloop()