mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -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 cura import CuraApplication
|
||||
|
||||
#
|
||||
# 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.
|
||||
@pyqtSlot(bool)
|
||||
def setAdhesion(self, checked: bool) -> None:
|
||||
from cura.CuraApplication import CuraApplication
|
||||
|
||||
application = CuraApplication.getInstance()
|
||||
application = CuraApplication.CuraApplication.getInstance()
|
||||
global_stack = application.getMachineManager().activeMachine
|
||||
if global_stack is None:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue