mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 04:25:56 +08:00
Last cleanup
Removing useless comments and replacing the log message with something more simple.
This commit is contained in:
parent
2e7db9b732
commit
51222325b0
@ -131,14 +131,12 @@ class USBPrinterOutputDeviceManager(QObject, SignalEmitter, OutputDevicePlugin,
|
|||||||
# Check whether getGlobalContainerStack() returns None or not...
|
# Check whether getGlobalContainerStack() returns None or not...
|
||||||
global_container_stack = Application.getInstance().getGlobalContainerStack()
|
global_container_stack = Application.getInstance().getGlobalContainerStack()
|
||||||
if not global_container_stack:
|
if not global_container_stack:
|
||||||
Logger.log("c", "getGlobalContainerStack() returned None")
|
Logger.log("e", "There is no global container stack. Can not update firmware.")
|
||||||
Logger.log("i", "Closing firmware-updater UI as a consequence")
|
|
||||||
self._firmware_view.close()
|
self._firmware_view.close()
|
||||||
|
|
||||||
# Detecting id of the current machine
|
# The bottom of the containerstack is the machine definition
|
||||||
machine_id = global_container_stack.getBottom().id
|
machine_id = global_container_stack.getBottom().id
|
||||||
|
|
||||||
# Detecting whether it has a heated bed
|
|
||||||
machine_has_heated_bed = global_container_stack.getProperty("machine_heated_bed", "value")
|
machine_has_heated_bed = global_container_stack.getProperty("machine_heated_bed", "value")
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
if platform.system() == "Linux":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user