mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
wip: #34
This commit is contained in:
@@ -202,7 +202,7 @@ public class TunerConfigurationModel extends AbstractTableModel
|
||||
|
||||
if( configurationName == null )
|
||||
{
|
||||
configurationName = "Default-" + uniqueID;
|
||||
configurationName = uniqueID;
|
||||
}
|
||||
|
||||
List<TunerConfiguration> configs = getTunerConfigurations( type );
|
||||
@@ -229,6 +229,22 @@ public class TunerConfigurationModel extends AbstractTableModel
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
public boolean hasTunerConfiguration( TunerType type, String name )
|
||||
{
|
||||
for( TunerConfiguration config: mTunerConfigurations )
|
||||
{
|
||||
if( config.getTunerType() == type &&
|
||||
config.getName().contentEquals( name ) )
|
||||
{
|
||||
mLog.debug( "Returning true for name: " + name );
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
mLog.debug( "Returning false for name: " + name );
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Assigns the tuner configuration to the tuner identified by the uniqueID
|
||||
|
||||
Reference in New Issue
Block a user