cjcliffe / CubicSDR

Cross-Platform Software-Defined Radio Application
http://www.cubicsdr.com
GNU General Public License v2.0
2.07k stars 256 forks source link

If a saved session only contains one demodulator then select it when loaded #123

Closed ghost closed 9 years ago

ghost commented 9 years ago

Check the video here: https://www.dropbox.com/s/ryy7tjz6w29wvlq/CubikSDR%20Bug.mov?dl=0 Some operations are on my second screen, but i will explain:

At 0:09 you see that i launch CubicSDR, move it to my second screen and resize. At 0:22 i open the Settings file. Note that filter bandwidth is set to 200.000. In the settings file it is set to 6000. You see that the center frequency changes but the filter bandwidth not. At 0:42 i hover over the filter and then the filter bandwidth is set to the correct value.

Bug?

cjcliffe commented 9 years ago

Not really a bug; what happens is that it loads and activates the demodulator but doesn't select it by default since there's the possibility of multiple demodulators loading; 200.000 is still just the unchanged default before you select it.

What you're seeing is when there's nothing selected and you hover over a demodulator the default action is to select it; otherwise it just gives you a scope preview on hover if it's not the selected one.

Though I can make it so that if there's only a single instance in the file it would select it by default; that might be more intuitive for when you're loading a session file containing a single frequency.

ghost commented 9 years ago

Yeah, that would be more clear, I think. On Aug 1, 2015 5:23 PM, "Charles J. Cliffe" notifications@github.com wrote:

Not really a bug; what happens is that it loads and activates the demodulator but doesn't select it by default since there's the possibility of multiple demodulators loading; 200.000 is still just the unchanged default before you select it.

What you're seeing is when there's nothing selected and you hover over a demodulator the default action is to select it; otherwise it just gives you a scope preview on hover if it's not the selected one.

Though I can make it so that if there's only a single instance in the file it would select it by default; that might be more intuitive for when you're loading a session file containing a single frequency.

— Reply to this email directly or view it on GitHub https://github.com/cjcliffe/CubicSDR/issues/123#issuecomment-126927580.

cjcliffe commented 9 years ago

If there's a single instance in the session file it'll now be selected and centered in view on load.

Cheers!