openwebrx-clone/owrx/controllers/settings/backgrounddecoding.py
2021-04-18 17:49:13 +02:00

25 lines
881 B
Python

from owrx.controllers.settings import SettingsFormController, Section
from owrx.form import CheckboxInput, ServicesCheckboxInput
from owrx.breadcrumb import Breadcrumb, BreadcrumbItem
from owrx.controllers.settings import SettingsBreadcrumb
class BackgroundDecodingController(SettingsFormController):
def getTitle(self):
return "Background decoding"
def get_breadcrumb(self) -> Breadcrumb:
return SettingsBreadcrumb().append(BreadcrumbItem("Background decoding", "settings/backgrounddecoding"))
def getSections(self):
return [
Section(
"Background decoding",
CheckboxInput(
"services_enabled",
"Enable background decoding services",
),
ServicesCheckboxInput("services_decoders", "Enabled services"),
),
]