Save Lua UI scripts separately
authorRobin Gareus <robin@gareus.org>
Sun, 4 Nov 2018 17:46:21 +0000 (18:46 +0100)
committerRobin Gareus <robin@gareus.org>
Sun, 4 Nov 2018 17:47:14 +0000 (18:47 +0100)
commit9971e718fed4a1126d97bad69f2608638d5a5464
tree452f128de10a5be917c0adf967c82dde2a0a3acb
parentabb09570284a5fbd7358a42ee94b34134ee583ba
Save Lua UI scripts separately

Previously EditorAction and ExitorHook scripts were saved with
instant.xml. The were saved with each session and in the config
dir (for new sessions). This allowed inconsistent UI setups, especially
when loading old sessions that had no or different scripts.

Now Editor scripts (actions and hooks) are saved in a dedicated file,
session-independently. This goes along with ui_config in general
e.g. action-table-columns

The scripts are not saved with ui_config file for two reasons:
ui_config settings related to built-in  ui_config_vars.h,
and in the future there may be further indirection like "ui-rc-file".

Note: previously loaded editor scripts are lost with this change.
gtk2_ardour/editor.cc
gtk2_ardour/luainstance.cc
gtk2_ardour/luainstance.h