mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Move busy handling into LayerPass and cleanup
CURA-1601
This commit is contained in:
parent
17b12b9048
commit
66f8a62e6c
3 changed files with 29 additions and 33 deletions
|
@ -39,7 +39,7 @@ class LayerViewProxy(QObject):
|
|||
def busy(self):
|
||||
active_view = self._controller.getActiveView()
|
||||
if type(active_view) == LayerView.LayerView.LayerView:
|
||||
return active_view.isBusy()
|
||||
return active_view.getLayerPass().isBusy()
|
||||
|
||||
return False
|
||||
|
||||
|
@ -67,4 +67,4 @@ class LayerViewProxy(QObject):
|
|||
if type(active_view) == LayerView.LayerView.LayerView:
|
||||
active_view.getLayerPass().currentLayerNumChanged.connect(self._onLayerChanged)
|
||||
active_view.getLayerPass().maxLayersChanged.connect(self._onMaxLayersChanged)
|
||||
active_view.busyChanged.connect(self._onBusyChanged)
|
||||
active_view.getLayerPass().busyChanged.connect(self._onBusyChanged)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue