Preserve developer-mode on reset
Thanks to Henning for pointing out problem.
This commit is contained in:
parent
2f1852ee83
commit
26b0148747
1 changed files with 4 additions and 1 deletions
|
@ -655,7 +655,10 @@ int fgInitConfig ( int argc, char **argv, bool reinit )
|
|||
developerMode = simgear::strutils::to_bool(s);
|
||||
}
|
||||
|
||||
fgSetBool("/sim/developer-mode", developerMode);
|
||||
auto node = fgGetNode("/sim/developer-mode", true);
|
||||
// ensure this value survives reset
|
||||
node->setAttribute(SGPropertyNode::PRESERVE, true);
|
||||
node->setBoolValue(developerMode);
|
||||
sglog().setDeveloperMode(developerMode);
|
||||
|
||||
static SimLogFileLine simLogFileLine;
|
||||
|
|
Loading…
Add table
Reference in a new issue