use a property layer right from the start

This commit is contained in:
Jakob Ketterl 2021-03-18 18:58:29 +01:00
parent 161408dbf4
commit 620771eaf2

View File

@ -253,7 +253,7 @@ class NewSdrDeviceController(SettingsFormController):
def __init__(self, handler, request, options): def __init__(self, handler, request, options):
super().__init__(handler, request, options) super().__init__(handler, request, options)
id_layer = PropertyLayer(id="") id_layer = PropertyLayer(id="")
self.data_layer = PropertyLayer(name="", type="", profiles={}) self.data_layer = PropertyLayer(name="", type="", profiles=PropertyLayer())
self.stack = PropertyStack() self.stack = PropertyStack()
self.stack.addLayer(0, id_layer) self.stack.addLayer(0, id_layer)
self.stack.addLayer(1, self.data_layer) self.stack.addLayer(1, self.data_layer)