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:
denny
2016-03-27 07:25:17 -04:00
parent 3caadf0c90
commit 55443b42f3
6 changed files with 75 additions and 27 deletions

View File

@@ -407,13 +407,13 @@ public class HackRFTunerEditor 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() )
{
HackRFTunerConfiguration 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 );
@@ -430,14 +430,14 @@ public class HackRFTunerEditor extends TunerConfigurationEditor
setControlsEnabled( false );
mConfigurationName.setText( config.getName() );
}
mLoading = false;
}
else
{
setControlsEnabled( false );
mConfigurationName.setText( "" );
}
mLoading = false;
}
@Override