altosui: Don't show bluetooth UI bits on mac/windows
[fw/altos] / altosuilib / AltosUILib.java
index 0050f12c24e9471c871e459cfb13693540daa051..8fa7dfe69d937b1833c0452282d112aeeefeb875 100644 (file)
@@ -80,6 +80,7 @@ public class AltosUILib extends AltosLib {
 
        static public boolean initialized = false;
        static public boolean loaded_library = false;
+       static public boolean has_bluetooth = false;
 
        static final String[] library_names = { "altos", "altos32", "altos64" };
 
@@ -96,6 +97,13 @@ public class AltosUILib extends AltosLib {
                                        loaded_library = false;
                                }
                        }
+
+                       String OS = System.getProperty("os.name");
+
+                       if (OS.startsWith("Linux")) {
+                               has_bluetooth = true;
+                       }
+
                        initialized = true;
                }
                return loaded_library;