mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-15 01:57:39 -05:00
#950 Resolves issue where message and event panels were aggregating across all selected now playing channels. (#951)
Co-authored-by: Denny <denny@denny-desktop>
This commit is contained in:
@@ -80,6 +80,15 @@ public abstract class HistoryModule<T> extends Module implements Listener<T>
|
|||||||
mBroadcaster.addListener(listener);
|
mBroadcaster.addListener(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes the listener from receiving items.
|
||||||
|
* @param listener to remove
|
||||||
|
*/
|
||||||
|
public void removeListener(Listener<T> listener)
|
||||||
|
{
|
||||||
|
mBroadcaster.removeListener(listener);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Primary item receiver method.
|
* Primary item receiver method.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ public class DecodeEventPanel extends JPanel implements Listener<ProcessingChain
|
|||||||
{
|
{
|
||||||
if(mCurrentEventHistory != null)
|
if(mCurrentEventHistory != null)
|
||||||
{
|
{
|
||||||
mCurrentEventHistory.addListener(null);
|
mCurrentEventHistory.removeListener(mEventModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
EventQueue.invokeLater(() -> {
|
EventQueue.invokeLater(() -> {
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public class MessageActivityPanel extends JPanel implements Listener<ProcessingC
|
|||||||
{
|
{
|
||||||
if(mCurrentMessageHistory != null)
|
if(mCurrentMessageHistory != null)
|
||||||
{
|
{
|
||||||
mCurrentMessageHistory.addListener(null);
|
mCurrentMessageHistory.removeListener(mMessageModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(processingChain != null)
|
if(processingChain != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user