[Linux] Let users edit Phone bluetooth MAC via GUI (#195)

initial commit
This commit is contained in:
TCH
2025-08-25 17:45:36 +02:00
committed by GitHub
parent dde5d1e808
commit eb1b633aff
2 changed files with 98 additions and 0 deletions

View File

@@ -154,8 +154,28 @@ ApplicationWindow {
visible: airPodsTrayApp.airpodsConnected
text: "Conversational Awareness"
checked: airPodsTrayApp.deviceInfo.conversationalAwareness
// Disable when no phone MAC set or using default placeholder
enabled: !(PHONE_MAC_ADDRESS === "" || PHONE_MAC_ADDRESS === "00:00:00:00:00:00")
onCheckedChanged: airPodsTrayApp.setConversationalAwareness(checked)
}
// Instruction when Conversational Awareness is disabled due to missing phone MAC
Row {
anchors.horizontalCenter: parent.horizontalCenter
spacing: 8
visible: airPodsTrayApp.airpodsConnected && (PHONE_MAC_ADDRESS === "" || PHONE_MAC_ADDRESS === "00:00:00:00:00:00")
Label {
text: "Set your phone's MAC in Settings to use this feature"
font.pixelSize: 12
color: "gray"
}
Button {
text: "Open Settings"
onClicked: stackView.push(settingsPage)
}
}
}
RoundButton {
@@ -269,6 +289,23 @@ ApplicationWindow {
}
}
Row {
spacing: 10
visible: airPodsTrayApp.airpodsConnected
TextField {
id: newPhoneMacField
placeholderText: (PHONE_MAC_ADDRESS !== "" ? PHONE_MAC_ADDRESS : "00:00:00:00:00:00")
maximumLength: 32
}
Button {
text: "Change Phone MAC"
onClicked: airPodsTrayApp.setPhoneMac(newPhoneMacField.text)
}
}
Button {
text: "Show Magic Cloud Keys QR"
onClicked: keysQrDialog.show()