mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Change import
CURA-6182
This commit is contained in:
parent
c9642273eb
commit
83b9e5e53b
1 changed files with 2 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
from PyQt5.QtCore import QObject, pyqtSlot
|
from PyQt5.QtCore import QObject, pyqtSlot
|
||||||
|
|
||||||
|
from cura import CuraApplication
|
||||||
|
|
||||||
#
|
#
|
||||||
# This object contains helper/convenience functions for Recommended mode.
|
# This object contains helper/convenience functions for Recommended mode.
|
||||||
|
@ -12,9 +13,7 @@ class RecommendedMode(QObject):
|
||||||
# Sets to use the adhesion or not for the "Adhesion" CheckBox in Recommended mode.
|
# Sets to use the adhesion or not for the "Adhesion" CheckBox in Recommended mode.
|
||||||
@pyqtSlot(bool)
|
@pyqtSlot(bool)
|
||||||
def setAdhesion(self, checked: bool) -> None:
|
def setAdhesion(self, checked: bool) -> None:
|
||||||
from cura.CuraApplication import CuraApplication
|
application = CuraApplication.CuraApplication.getInstance()
|
||||||
|
|
||||||
application = CuraApplication.getInstance()
|
|
||||||
global_stack = application.getMachineManager().activeMachine
|
global_stack = application.getMachineManager().activeMachine
|
||||||
if global_stack is None:
|
if global_stack is None:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue