mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-13 17:17:29 -05:00
wip #34 - resolved issue with airspy correctly loading stored tuner
configuration values. Updated remaining tuner editors to set loading flag when loading tuner configuration and turn off after loading is complete.
This commit is contained in:
@@ -425,13 +425,13 @@ public class FCD1TunerEditor extends TunerConfigurationEditor
|
||||
{
|
||||
super.setItem( tunerConfiguration );
|
||||
|
||||
//Toggle loading so that we don't fire a change event and schedule a settings file save
|
||||
mLoading = true;
|
||||
|
||||
if( hasItem() )
|
||||
{
|
||||
FCD1TunerConfiguration config = getConfiguration();
|
||||
|
||||
//Toggle loading so that we don't fire a change event and schedule a settings file save
|
||||
mLoading = true;
|
||||
|
||||
if( tunerConfiguration.isAssigned() )
|
||||
{
|
||||
setControlsEnabled( true );
|
||||
@@ -450,14 +450,14 @@ public class FCD1TunerEditor extends TunerConfigurationEditor
|
||||
setControlsEnabled( false );
|
||||
mConfigurationName.setText( config.getName() );
|
||||
}
|
||||
|
||||
mLoading = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
setControlsEnabled( false );
|
||||
mConfigurationName.setText( "" );
|
||||
}
|
||||
|
||||
mLoading = false;
|
||||
}
|
||||
|
||||
public enum Correction { GAIN, PHASE, DC_INPHASE, DC_QUADRATURE };
|
||||
|
||||
@@ -295,12 +295,13 @@ public class FCD2TunerEditor extends TunerConfigurationEditor
|
||||
{
|
||||
super.setItem( tunerConfiguration );
|
||||
|
||||
//Toggle loading so that we don't fire a change event and schedule a settings file save
|
||||
mLoading = true;
|
||||
|
||||
if( hasItem() )
|
||||
{
|
||||
FCD2TunerConfiguration config = getConfiguration();
|
||||
|
||||
//Toggle loading so that we don't fire a change event and schedule a settings file save
|
||||
mLoading = true;
|
||||
|
||||
if( tunerConfiguration.isAssigned() )
|
||||
{
|
||||
@@ -315,13 +316,13 @@ public class FCD2TunerEditor extends TunerConfigurationEditor
|
||||
setControlsEnabled( false );
|
||||
mConfigurationName.setText( config.getName() );
|
||||
}
|
||||
|
||||
mLoading = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
setControlsEnabled( false );
|
||||
mConfigurationName.setText( "" );
|
||||
}
|
||||
|
||||
mLoading = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user