Reset: persist USERARCHIVE settings
Save user-setting properties to disk before beginning a reset, so they are restored correctly.
This commit is contained in:
parent
09fdfe358c
commit
525cfadfa3
1 changed files with 5 additions and 0 deletions
|
@ -1115,6 +1115,11 @@ void fgStartReposition()
|
||||||
|
|
||||||
void fgStartNewReset()
|
void fgStartNewReset()
|
||||||
{
|
{
|
||||||
|
// save user settings now, so that USERARCIVE-d values changes since the
|
||||||
|
// last init are recorded and hence re-loaded when we fgInitConfig down
|
||||||
|
// later in this function. Otherwise all such settings are lost.
|
||||||
|
globals->saveUserSettings();
|
||||||
|
|
||||||
SGPropertyNode_ptr preserved(new SGPropertyNode);
|
SGPropertyNode_ptr preserved(new SGPropertyNode);
|
||||||
|
|
||||||
if (!copyPropertiesWithAttribute(globals->get_props(), preserved, SGPropertyNode::PRESERVE))
|
if (!copyPropertiesWithAttribute(globals->get_props(), preserved, SGPropertyNode::PRESERVE))
|
||||||
|
|
Loading…
Add table
Reference in a new issue