mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
remove waterfall_colors unless scheme is custom
This commit is contained in:
parent
8d2763930b
commit
9aebeb51f8
|
|
@ -177,4 +177,9 @@ class GeneralSettingsController(SettingsFormController):
|
||||||
# Image handling
|
# Image handling
|
||||||
for img in ["receiver_avatar", "receiver_top_photo"]:
|
for img in ["receiver_avatar", "receiver_top_photo"]:
|
||||||
self.handle_image(data, img)
|
self.handle_image(data, img)
|
||||||
|
# special handling for waterfall colors: custom colors only stay in config if custom color scheme is selected
|
||||||
|
if "waterfall_scheme" in data:
|
||||||
|
scheme = WaterfallOptions(data["waterfall_scheme"])
|
||||||
|
if scheme is not WaterfallOptions.CUSTOM and "waterfall_colors" in data:
|
||||||
|
data["waterfall_colors"] = None
|
||||||
super().processData(data)
|
super().processData(data)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue