mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 22:17:34 +00:00
implement profile removal behaviour
This commit is contained in:
parent
2ba2ec38e0
commit
2e28694b49
3 changed files with 41 additions and 4 deletions
|
|
@ -82,6 +82,12 @@ class SdrProfileCarousel(PropertyCarousel):
|
|||
elif not self.hasLayer(profile_id):
|
||||
self.addLayer(profile_id, profile)
|
||||
|
||||
def _getDefaultLayer(self):
|
||||
# return the first available profile, or the default empty layer if we don't have any
|
||||
if self.layers:
|
||||
return next(iter(self.layers.values()))
|
||||
return super()._getDefaultLayer()
|
||||
|
||||
|
||||
class SdrSource(ABC):
|
||||
def __init__(self, id, props):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue