stronnag / mwptools

ground station, mission planner and tools for INAV and multiwii-nav
http://stronnag.github.io/mwptools/
GNU General Public License v3.0
203 stars 35 forks source link

mwp saves layout , but does not load/restore it #148

Closed xchetah closed 1 year ago

xchetah commented 1 year ago

Hi, Regarding #147 after compiling mwp with the modifications , now it shows a dialog to enter a file name to save the layout to. but loading/restoring the layout does not work, layout is always the same. is there something missing in https://github.com/stronnag/mwptools/commit/6cdfbf2514603c34abb660f1fac7076c5c3bb98e ? here is the saved layout file : my_layout.txt

I closed the Radio doc , the file saved correctly

<item name="Radio" orientation="vertical" resize="yes" locked="no" iconified="no" closed="yes"/>

but it still shows in the layout. any help is apreciated.

stronnag commented 1 year ago

Saving and restoring works fine for me. At startup the defult .layout is always loaded by design. If you want a new default, save it as such.

stronnag commented 1 year ago

And you can start mwp with any saved layout you wish, as documented

mwp --layout=foo