BHoM / BHoM_Engine

Internal manipulation of the BHoM
GNU Lesser General Public License v3.0
26 stars 13 forks source link

Settings_Engine: Ensure that SaveSettings also updates settings loading in memory #3295

Closed FraserGreenroyd closed 6 months ago

FraserGreenroyd commented 6 months ago

Currently SaveSettings will update settings on disc, but not the settings in memory, while UpdateSettings will update the settings but not save them.

This means, when working with settings programmatically, you need to call both to ensure later calls to GetSettings return the ones saved - which is extra work for developer users.

So instead, if we SaveSettings, let's ensure we also UpdateSettings at the same time. However, keep UpdateSettings as is, to allow for people to update their in-memory settings without overwriting the saved settings for on-the-fly setting operations.