mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Added compatibility mode - old layer view is now also available
This commit is contained in:
parent
b79f0c6d08
commit
93137fcc91
8 changed files with 418 additions and 346 deletions
|
@ -49,7 +49,15 @@ class LayerViewProxy(QObject):
|
|||
return active_view.isBusy()
|
||||
|
||||
return False
|
||||
|
||||
|
||||
@pyqtProperty(bool)
|
||||
def compatibilityMode(self):
|
||||
active_view = self._controller.getActiveView()
|
||||
if type(active_view) == LayerView.LayerView.LayerView:
|
||||
return active_view.getCompatibilityMode()
|
||||
|
||||
return False
|
||||
|
||||
@pyqtSlot(int)
|
||||
def setCurrentLayer(self, layer_num):
|
||||
active_view = self._controller.getActiveView()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue