|
@@ -16,13 +16,14 @@ class LayerViewProxy(QObject):
|
|
|
@pyqtProperty(bool, notify = activityChanged)
|
|
|
def getLayerActivity(self):
|
|
|
active_view = self._controller.getActiveView()
|
|
|
- return active_view.getActivity()
|
|
|
+ if type(active_view) == LayerView.LayerView.LayerView:
|
|
|
+ return active_view.getActivity()
|
|
|
|
|
|
@pyqtProperty(int, notify = maxLayersChanged)
|
|
|
def numLayers(self):
|
|
|
active_view = self._controller.getActiveView()
|
|
|
- #print("num max layers " , active_view.getMaxLayers())
|
|
|
- return active_view.getMaxLayers()
|
|
|
+ if type(active_view) == LayerView.LayerView.LayerView:
|
|
|
+ return active_view.getMaxLayers()
|
|
|
#return 100
|
|
|
|
|
|
@pyqtProperty(int, notify = currentLayerChanged)
|