Force layer name to be string
@@ -408,7 +408,7 @@ class Layer(KeymapProvider, MousemapProvider, ABC):
return
if not name:
name = self._basename()
- self._name = name
+ self._name = str(name)
self.events.name()
@property
