Only show legend in color: line_type

This commit is contained in:
Jack Ha 2017-02-08 11:08:59 +01:00
parent 1d6ef4bc3c
commit 6c19bc1c16
3 changed files with 34 additions and 4 deletions

View file

@ -129,6 +129,18 @@ class LayerViewProxy(QObject):
return active_view.getExtruderCount()
return 0
@pyqtSlot()
def enableLegend(self):
active_view = self._controller.getActiveView()
if type(active_view) == LayerView.LayerView.LayerView:
active_view.enableLegend()
@pyqtSlot()
def disableLegend(self):
active_view = self._controller.getActiveView()
if type(active_view) == LayerView.LayerView.LayerView:
active_view.disableLegend()
def _layerActivityChanged(self):
self.activityChanged.emit()