From: Mirko Günther <renegart@gmx.de>
Subject: about: load the Bluetooth panel dynamically

Instantiate LomiriBluetoothPanel at runtime so the About page keeps
working when the Bluetooth plugin is not built or installed. The
Bluetooth address row is hidden in that case.

diff --git a/plugins/about/PageComponent.qml b/plugins/about/PageComponent.qml
index 7bcdfdb..3080f33 100644
--- a/plugins/about/PageComponent.qml
+++ b/plugins/about/PageComponent.qml
@@ -23,7 +23,6 @@ import SystemSettings 1.0
 import SystemSettings.ListItems 1.0 as SettingsListItems
 import Lomiri.Components 1.3
 import Lomiri.SystemSettings.StorageAbout 1.0
-import Lomiri.SystemSettings.Bluetooth 1.0
 import Lomiri.SystemSettings.Usb 1.0
 import QOfono 0.2
 
@@ -34,15 +33,22 @@ ItemPage {
     flickable: scrollWidget
     property var modemsSorted: []
     property var showImei: false
+    property var bluetooth: null
+
+    Component.onCompleted: {
+        try {
+            bluetooth = Qt.createQmlObject(
+                "import Lomiri.SystemSettings.Bluetooth 1.0; LomiriBluetoothPanel {}",
+                root, "LomiriBluetoothPanel")
+        } catch (e) {
+            console.log("Bluetooth plugin not available:", e.message)
+        }
+    }
 
     LomiriStorageAboutPanel {
         id: backendInfos
     }
 
-    LomiriBluetoothPanel {
-        id: bluetooth
-    }
-
     OfonoManager {
         id: manager
         onModemsChanged: root.modemsSorted = modems.slice(0).sort()
@@ -127,8 +133,8 @@ ItemPage {
             SettingsListItems.SingleValue {
                 id: bthwaddr
                 text: i18n.tr("Bluetooth address")
-                value: bluetooth.adapterAddress
-                visible: bluetooth.adapterAddress
+                value: bluetooth ? bluetooth.adapterAddress : ""
+                visible: value
                 showDivider: false
             }
 
