Fix 'Switch to' button
This commit is contained in:
parent
1dbe162bf0
commit
cd41f9a236
@ -441,7 +441,7 @@ class _MediaPlayerControlsState extends State<MediaPlayerControls> {
|
||||
}
|
||||
|
||||
void _switchTo(entity) {
|
||||
HomeAssistant().sendFromPlayerId = entity.enityId;
|
||||
HomeAssistant().sendFromPlayerId = entity.entityId;
|
||||
_duplicateTo(entity);
|
||||
}
|
||||
|
||||
|
@ -232,6 +232,7 @@ class _PlayMediaPageState extends State<PlayMediaPage> {
|
||||
|
||||
@override
|
||||
void dispose(){
|
||||
HomeAssistant().sendFromPlayerId = null;
|
||||
_stateSubscription?.cancel();
|
||||
_refreshDataSubscription?.cancel();
|
||||
super.dispose();
|
||||
|
Reference in New Issue
Block a user