On Sun, Jan 30, 2011 at 8:51 PM, Frederic Bouvier <fredfgf...@free.fr> wrote: > > But if you start without a joystick, you won't be able to open that dialog
That is true. Easily fixed by reevaluating the menu state after the reload. Should probably be refactored a little to avoid code duplication (I simply copied the line from gui.nas) diff --git a/gui/menubar.xml b/gui/menubar.xml index 0d2cc52..05c7133 100644 --- a/gui/menubar.xml +++ b/gui/menubar.xml @@ -571,6 +571,10 @@ <command>reinit</command> <subsystem>input</subsystem> </binding> + <binding> + <command>nasal</command> + <script>gui.menuEnable("joystick-info", size(props.globals.getNode("/input/joysticks").getChildren("js")));</script> + </binding> </item> <item> -- Csaba/Jester ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel