mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Set correct enabled state on popup cast menu item
This commit is contained in:
@@ -325,7 +325,11 @@ class PopupApp extends Component<PopupAppProps, PopupAppState> {
|
||||
browser.menus.update(menuIdPopupCast, {
|
||||
visible: true,
|
||||
title: _("popupCastMenuTitle", device.friendlyName),
|
||||
enabled: !this.state.isConnecting
|
||||
enabled:
|
||||
// Not already connecting to a receiver
|
||||
!this.state.isConnecting &&
|
||||
// Selected media type available
|
||||
!!(this.state.availableMediaTypes & this.state.mediaType)
|
||||
});
|
||||
|
||||
browser.menus.update(menuIdPopupStop, {
|
||||
|
||||
Reference in New Issue
Block a user