fixed cast play

This commit is contained in:
2026-01-14 17:55:18 +01:00
parent efdba35b77
commit ed2e660d34
7 changed files with 438 additions and 170 deletions

View File

@@ -1059,6 +1059,13 @@ function setupEventListeners() {
refreshCastDeviceList();
}
});
// Notify UI when a device is removed so the list can update
window.__TAURI__.event.listen('cast-device-removed', (event) => {
console.log('Cast device removed:', event.payload);
if (!castOverlay.classList.contains('hidden')) {
refreshCastDeviceList();
}
});
}
// Menu button - explicit functionality or placeholder?