Nasal/multiplayer.nas: Make sure we update view if /sim/current-view/model-view is changed.
This commit is contained in:
parent
c984ac4021
commit
3302620745
1 changed files with 6 additions and 1 deletions
|
@ -359,10 +359,15 @@ var dialog = {
|
||||||
# the boxes in the 'view' column so that only the one for the aircraft
|
# the boxes in the 'view' column so that only the one for the aircraft
|
||||||
# being viewed is checked. If the user's aircraft is being viewed, none
|
# being viewed is checked. If the user's aircraft is being viewed, none
|
||||||
# of these boxes will be checked.
|
# of these boxes will be checked.
|
||||||
callsign = getprop("/sim/current-view/model-view");
|
var callsign = getprop("/sim/current-view/model-view");
|
||||||
|
|
||||||
|
# Update Pilot View checkboxes.
|
||||||
foreach (var mp; model.list) {
|
foreach (var mp; model.list) {
|
||||||
mp.node.setValues({'view': mp.callsign == callsign});
|
mp.node.setValues({'view': mp.callsign == callsign});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Update actual view.
|
||||||
|
view.model_view_handler.select(callsign, 1);
|
||||||
},
|
},
|
||||||
update: func(id) {
|
update: func(id) {
|
||||||
id == me.loopid or return;
|
id == me.loopid or return;
|
||||||
|
|
Loading…
Reference in a new issue