From 3302620745bf26fdce65b310e54a5c02f6571ac2 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Sun, 20 Oct 2019 18:05:24 +0100 Subject: [PATCH] Nasal/multiplayer.nas: Make sure we update view if /sim/current-view/model-view is changed. --- Nasal/multiplayer.nas | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Nasal/multiplayer.nas b/Nasal/multiplayer.nas index 32cba8dc4..b8b7d8f3e 100644 --- a/Nasal/multiplayer.nas +++ b/Nasal/multiplayer.nas @@ -359,10 +359,15 @@ var dialog = { # 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 # 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) { mp.node.setValues({'view': mp.callsign == callsign}); } + + # Update actual view. + view.model_view_handler.select(callsign, 1); }, update: func(id) { id == me.loopid or return;