From ca7311cb08cbb1e1f077898e6bdeceb4d463ad8c Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 21 Nov 2024 16:39:36 -0500 Subject: [PATCH] Simplify play target sorting --- .../components/AppToolbar/menus/RemotePlayMenu.tsx | 13 ++++++++----- src/components/playback/playbackmanager.js | 13 ++----------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/apps/experimental/components/AppToolbar/menus/RemotePlayMenu.tsx b/src/apps/experimental/components/AppToolbar/menus/RemotePlayMenu.tsx index bb53bf6ef5..33eefa72b2 100644 --- a/src/apps/experimental/components/AppToolbar/menus/RemotePlayMenu.tsx +++ b/src/apps/experimental/components/AppToolbar/menus/RemotePlayMenu.tsx @@ -65,17 +65,20 @@ const RemotePlayMenu: FC = ({ open={open} onClose={onMenuClose} > - {!isChromecastPluginLoaded && ([ - + {!isChromecastPluginLoaded && ( + {globalize.translate('GoogleCastUnsupported')} - , - - ])} + + )} + + {!isChromecastPluginLoaded && playbackTargets.length > 0 && ( + + )} {playbackTargets.map(target => ( responses.flat().sort(sortPlayerTargets)); }; self.playerHasSecondarySubtitleSupport = function (player = self._currentPlayer) {