From a097369466c21e2ec6ce61f691627ba88a91144d Mon Sep 17 00:00:00 2001 From: bwees Date: Mon, 2 Jun 2025 14:47:57 -0500 Subject: [PATCH] dont show cast button if asset is remote and we are not casting --- mobile/lib/widgets/asset_viewer/top_control_app_bar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/widgets/asset_viewer/top_control_app_bar.dart b/mobile/lib/widgets/asset_viewer/top_control_app_bar.dart index c2581783de5..9d511bf4224 100644 --- a/mobile/lib/widgets/asset_viewer/top_control_app_bar.dart +++ b/mobile/lib/widgets/asset_viewer/top_control_app_bar.dart @@ -213,7 +213,7 @@ class TopControlAppBar extends HookConsumerWidget { !asset.isTrashed && !isInLockedView) buildAddToAlbumButton(), - buildCastButton(), + if (isCasting || asset.isRemote) buildCastButton(), if (asset.isTrashed) buildRestoreButton(), if (album != null && album.shared && !isInLockedView) buildActivitiesButton(),