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