#775 Playlist Editor Cleanup (#779)

* #775 Adds frequency column to channel editor

* #775 Resolves issue with changing channel processing flag on FX event thread

* #775 Removes auto-detect channel settings for P25 Phase 2 configurations.

* #775 Playlist editor cleanup actions.  Changes style of segmented buttons.  Fix issue with channel set processing not on FX thread.  Removes P25P2 auto-detect settings feature.  Adds frequency column to channel editor.

Co-authored-by: Denny <denny@denny-desktop>
This commit is contained in:
Denny Sheirer
2020-05-02 13:53:44 +00:00
committed by GitHub
parent 9bd6507342
commit cff5494db4
10 changed files with 82 additions and 55 deletions

View File

@@ -49,6 +49,7 @@ import io.github.dsheirer.source.Source;
import io.github.dsheirer.source.SourceEvent;
import io.github.dsheirer.source.SourceException;
import io.github.dsheirer.source.SourceManager;
import javafx.application.Platform;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -234,7 +235,6 @@ public class ChannelProcessingManager implements Listener<ChannelEvent>
public void start(Channel channel) throws ChannelException
{
startProcessing(new ChannelEvent(channel, ChannelEvent.Event.REQUEST_ENABLE));
}
/**
@@ -278,7 +278,8 @@ public class ChannelProcessingManager implements Listener<ChannelEvent>
if(source == null)
{
channel.setProcessing(false);
//This has to be done on the FX event thread when the playlist editor is constructed
Platform.runLater(() -> channel.setProcessing(false));
mChannelEventBroadcaster.broadcast(new ChannelEvent(channel,
ChannelEvent.Event.NOTIFICATION_PROCESSING_START_REJECTED, TUNER_UNAVAILABLE_DESCRIPTION));
@@ -417,7 +418,8 @@ public class ChannelProcessingManager implements Listener<ChannelEvent>
}
processingChain.start();
channel.setProcessing(true);
//This has to be done on the FX event thread when the playlist editor is constructed
Platform.runLater(() -> channel.setProcessing(true));
getChannelMetadataModel().add(processingChain.getChannelState().getChannelMetadata(), channel);
@@ -434,7 +436,8 @@ public class ChannelProcessingManager implements Listener<ChannelEvent>
*/
private void stopProcessing(Channel channel, boolean remove) throws ChannelException
{
channel.setProcessing(false);
//This has to be done on the FX event thread when the playlist editor is constructed
Platform.runLater(() -> channel.setProcessing(false));
if(mProcessingChains.containsKey(channel))
{