I’m trying to extend the functionality of “layout save” to also save Mission Editor, since it only saves the console and map windows at the moment.
modules/lib/win_layout.py holds the functionality for “layout save” in win_layout.save_layout, which saves all the windows that are stored in the global var window_list. Console and Map get stored in this list by calling the win_layout.set_layout function, so I’m using that function to store Mission Editor. This works just fine, but when I execute “layout save” and win_layout.save_layout is called, Mission Editor is no longer in window_list.
I’m wondering if anyone has any ideas on what could be happening or if there is a better way to approach this.