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