mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 01:08:59 +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 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…
x
Reference in New Issue
Block a user