mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
* #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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user