mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 15:05:54 +08:00
Merge branch 'master' of github.com:Ultimaker/cura
This commit is contained in:
commit
3497736c88
@ -451,27 +451,18 @@ class CuraApplication(QtApplication):
|
|||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def discardOrKeepProfileChangesClosed(self, option):
|
def discardOrKeepProfileChangesClosed(self, option):
|
||||||
|
global_stack = self.getGlobalContainerStack()
|
||||||
if option == "discard":
|
if option == "discard":
|
||||||
global_stack = self.getGlobalContainerStack()
|
for extruder in global_stack.extruders.values():
|
||||||
for extruder in self._extruder_manager.getMachineExtruders(global_stack.getId()):
|
extruder.userChanges.clear()
|
||||||
extruder.getTop().clear()
|
global_stack.userChanges.clear()
|
||||||
global_stack.getTop().clear()
|
|
||||||
|
|
||||||
# if the user decided to keep settings then the user settings should be re-calculated and validated for errors
|
# if the user decided to keep settings then the user settings should be re-calculated and validated for errors
|
||||||
# before slicing. To ensure that slicer uses right settings values
|
# before slicing. To ensure that slicer uses right settings values
|
||||||
elif option == "keep":
|
elif option == "keep":
|
||||||
global_stack = self.getGlobalContainerStack()
|
for extruder in global_stack.extruders.values():
|
||||||
for extruder in self._extruder_manager.getMachineExtruders(global_stack.getId()):
|
extruder.userChanges.update()
|
||||||
user_extruder_container = extruder.getTop()
|
global_stack.userChanges.update()
|
||||||
if user_extruder_container:
|
|
||||||
user_extruder_container.update()
|
|
||||||
|
|
||||||
user_global_container = global_stack.getTop()
|
|
||||||
if user_global_container:
|
|
||||||
user_global_container.update()
|
|
||||||
|
|
||||||
# notify listeners that quality has changed (after user selected discard or keep)
|
|
||||||
self.getMachineManager().activeQualityChanged.emit()
|
|
||||||
|
|
||||||
@pyqtSlot(int)
|
@pyqtSlot(int)
|
||||||
def messageBoxClosed(self, button):
|
def messageBoxClosed(self, button):
|
||||||
|
@ -60,7 +60,7 @@ class RemovableDriveOutputDevice(OutputDevice):
|
|||||||
|
|
||||||
if len(file_formats) == 0:
|
if len(file_formats) == 0:
|
||||||
Logger.log("e", "There are no file formats available to write with!")
|
Logger.log("e", "There are no file formats available to write with!")
|
||||||
raise OutputDeviceError.WriteRequestFailedError(catalog.i18nc("There are no file formats available to write with!"))
|
raise OutputDeviceError.WriteRequestFailedError(catalog.i18nc("@info:status", "There are no file formats available to write with!"))
|
||||||
|
|
||||||
# Just take the first file format available.
|
# Just take the first file format available.
|
||||||
if file_handler is not None:
|
if file_handler is not None:
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"visible": true,
|
"visible": true,
|
||||||
"manufacturer": "BQ",
|
"manufacturer": "BQ",
|
||||||
"author": "BQ",
|
"author": "BQ",
|
||||||
"file_formats": "text/x-code",
|
"file_formats": "text/x-gcode",
|
||||||
"platform": "bq_hephestos_platform.stl",
|
"platform": "bq_hephestos_platform.stl",
|
||||||
"platform_offset": [ 0, -82, 0]
|
"platform_offset": [ 0, -82, 0]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user