... | ... |
@@ -323,7 +323,7 @@ var buttonsClass = { |
323 | 323 |
if (a) return; |
324 | 324 |
me.device.buttons.ValidateTMRREF(); |
325 | 325 |
var settings_file = getprop('/sim/fg-home') ~'/aircraft-data/zkv1000.xml'; |
326 |
- if (io.stat(settings_file) != nil) |
|
326 |
+ if (zkv.getNode('_save') == nil and io.stat(settings_file) != nil) |
|
327 | 327 |
fgcommand('loadxml', props.Node.new({ filename: settings_file, targetnode: zkv.getNode('_save', 1).getPath() })); |
328 | 328 |
props.copy(zkv.getNode('save'), zkv.getNode('_save/' ~ getprop('/sim/aircraft'), 1), 1); |
329 | 329 |
} |