altosui: Don't show bluetooth UI bits on mac/windows
[fw/altos] / altosuilib / AltosDeviceDialog.java
index 0875bea7301a85ee6aee7a7df1ad67ad7e8b6dfb..d2ccd5e76f15e388daf1d9bae3314ea1b847eea9 100644 (file)
@@ -131,7 +131,8 @@ public abstract class AltosDeviceDialog extends AltosUIDialog implements ActionL
                buttonPane.add(cancel_button);
                buttonPane.add(Box.createRigidArea(new Dimension(10, 0)));
 
-               add_bluetooth();
+               if (AltosUILib.has_bluetooth)
+                       add_bluetooth();
 
                buttonPane.add(select_button);