mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 10:45:54 +08:00
Change import
CURA-6182
This commit is contained in:
parent
c9642273eb
commit
83b9e5e53b
@ -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…
x
Reference in New Issue
Block a user