[Linux] Implement renaming airpods (#88)

* [Linux] Implement rename airpods

* [Linux] Get airpods name from airpods metadata

* [Linux] Rename AirPods: Ui improvements

---------

Co-authored-by: Tim Gromeyer <tim.gromeyer@trans4mation.de>
This commit is contained in:
Tim Gromeyer
2025-03-28 07:04:17 +01:00
committed by GitHub
parent 5a71d9630d
commit 543362da69
3 changed files with 143 additions and 0 deletions

View File

@@ -72,5 +72,23 @@ ApplicationWindow {
anchors.top: parent.bottom
}
}
Row {
spacing: 10
TextField {
id: newNameField
placeholderText: airPodsTrayApp.deviceName
maximumLength: 32
}
Button {
text: "Rename"
onClicked: {
airPodsTrayApp.renameAirPods(newNameField.text)
// Optional: newNameField.text = "" // Clear field after rename
}
}
}
}
}