waterfall config fine-adjustments
* hide the waterfall colors input when pre-defined color scheme is selected * skip unparseable lines on custom color input * fallback to black and white if custom color config is unusable * always use the waterfall classes when sending changes to the client
This commit is contained in:
@ -207,8 +207,8 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
|
||||
def writeConfig(changes):
|
||||
# TODO it would be nicer to have all options available and switchable in the client
|
||||
# this restores the existing functionality for now, but there is lots of potential
|
||||
if "waterfall_scheme" in changes:
|
||||
scheme = WaterfallOptions(changes["waterfall_scheme"]).instantiate()
|
||||
if "waterfall_scheme" in changes or "waterfall_colors" in changes:
|
||||
scheme = WaterfallOptions(globalConfig["waterfall_scheme"]).instantiate()
|
||||
changes["waterfall_colors"] = scheme.getColors()
|
||||
self.write_config(changes)
|
||||
|
||||
|
Reference in New Issue
Block a user