mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-10 19:52:24 +00:00
linux: fix conversational awareness check for phone MAC
This commit is contained in:
@@ -154,28 +154,8 @@ ApplicationWindow {
|
|||||||
visible: airPodsTrayApp.airpodsConnected
|
visible: airPodsTrayApp.airpodsConnected
|
||||||
text: "Conversational Awareness"
|
text: "Conversational Awareness"
|
||||||
checked: airPodsTrayApp.deviceInfo.conversationalAwareness
|
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)
|
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 {
|
RoundButton {
|
||||||
@@ -184,7 +164,7 @@ ApplicationWindow {
|
|||||||
anchors.margins: 10
|
anchors.margins: 10
|
||||||
font.family: iconFont.name
|
font.family: iconFont.name
|
||||||
font.pixelSize: 18
|
font.pixelSize: 18
|
||||||
text: "\uf958" // U+F958
|
text: "\uf958"
|
||||||
onClicked: stackView.push(settingsPage)
|
onClicked: stackView.push(settingsPage)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user