1
0
Fork 0

gui/menubar.xml: always open mpcarriers dialogue.

Avoids need to retry opening dialogue after getting 'Found no MPCarriers for
activated carrier AI scenarios within range' diagnostic.
This commit is contained in:
Julian Smith 2019-10-19 00:35:51 +01:00
parent 8efa938ace
commit c984ac4021

View file

@ -633,11 +633,11 @@
<binding>
<command>nasal</command>
<script>
if (contains(globals, "MPCarriers")) {
MPCarriers.carrier_dialog.show();
} else {
gui.popupTip("Found no MPCarriers for activated carrier AI scenarios within range.", 5.0);
}
if (!contains(globals, "MPCarriers")) {
var base = "Aircraft/MPCarrier/Systems/MPCarriers.nas";
io.load_nasal(resolvepath(base), "MPCarriers");
}
MPCarriers.carrier_dialog.show();
</script>
</binding>
</item>