mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Restores context menus for channels in configuration window, channel
processing window, and spectral display window.
This commit is contained in:
@@ -77,6 +77,7 @@ import controller.ResourceManager;
|
||||
import controller.channel.Channel;
|
||||
import controller.channel.ChannelEvent;
|
||||
import controller.channel.ChannelEventListener;
|
||||
import controller.channel.ChannelUtils;
|
||||
import dsp.filter.Window.WindowType;
|
||||
|
||||
/**
|
||||
@@ -517,15 +518,17 @@ public class SpectralDisplayPanel extends JPanel
|
||||
ArrayList<Channel> channels =
|
||||
mOverlayPanel.getChannelsAtFrequency( frequency );
|
||||
|
||||
// for( Channel channel: channels )
|
||||
// {
|
||||
// JMenu menu = channel.getContextMenu();
|
||||
//
|
||||
// if( menu != null )
|
||||
// {
|
||||
// contextMenu.add( menu );
|
||||
// }
|
||||
// }
|
||||
for( Channel channel: channels )
|
||||
{
|
||||
JMenu channelMenu = ChannelUtils.getContextMenu(
|
||||
mResourceManager.getPlaylistManager(),
|
||||
channel, SpectralDisplayPanel.this );
|
||||
|
||||
if( channelMenu != null )
|
||||
{
|
||||
contextMenu.add( channelMenu );
|
||||
}
|
||||
}
|
||||
|
||||
if( !channels.isEmpty() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user