1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-07 05:58:28 -04:00

audio/bluez: update device aliases at runtime when renamed

fixes #1628
This commit is contained in:
bbedward
2026-07-04 23:00:22 -04:00
parent 3df801e3b2
commit dd7f4f3ac5
2 changed files with 17 additions and 0 deletions
+9
View File
@@ -210,6 +210,10 @@ Singleton {
updated[nodeName] = trimmedAlias;
deviceAliases = updated;
const btDevice = BluetoothService.deviceForNodeName(nodeName);
if (btDevice)
btDevice.name = trimmedAlias;
writeWireplumberConfig();
deviceAliasChanged(nodeName, trimmedAlias);
return true;
@@ -226,6 +230,11 @@ Singleton {
delete updated[nodeName];
deviceAliases = updated;
// Empty BlueZ alias write resets to the device's real name.
const btDevice = BluetoothService.deviceForNodeName(nodeName);
if (btDevice)
btDevice.name = "";
writeWireplumberConfig();
deviceAliasChanged(nodeName, "");
return true;