new profile carousel implementation reacts to new profiles

This commit is contained in:
Jakob Ketterl
2021-03-05 18:57:09 +01:00
parent a3cfde02c4
commit 2ba2ec38e0
3 changed files with 50 additions and 15 deletions

View File

@ -351,6 +351,12 @@ class PropertyCarousel(PropertyDelegator):
def addLayer(self, key, value):
self.layers[key] = value
def hasLayer(self, key):
return key in self.layers
def removeLayer(self, key):
del self.layers[key]
def switch(self, key):
before = self.pm
self.subscription.cancel()