mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 14:07:32 +00:00
simplify api by abstracting layer changes
This commit is contained in:
parent
6af0ad0262
commit
3d20e3ed80
3 changed files with 19 additions and 11 deletions
|
|
@ -84,7 +84,7 @@ class SdrProfileCarousel(PropertyCarousel):
|
|||
for profile_id, profile in changes.items():
|
||||
if profile is PropertyDeleted:
|
||||
self.removeLayer(profile_id)
|
||||
elif not self.hasLayer(profile_id):
|
||||
else:
|
||||
self.addLayer(profile_id, profile)
|
||||
|
||||
def _getDefaultLayer(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue