mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-21 06:13:45 +00:00
remove waterfall_colors unless scheme is custom
This commit is contained in:
parent
8d2763930b
commit
9aebeb51f8
1 changed files with 5 additions and 0 deletions
|
|
@ -177,4 +177,9 @@ class GeneralSettingsController(SettingsFormController):
|
|||
# Image handling
|
||||
for img in ["receiver_avatar", "receiver_top_photo"]:
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue