mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:39:01 +08:00
Update DisplayFilenameAndLayerOnLCD.py
This commit is contained in:
parent
1ae0728c9f
commit
10643da56c
@ -71,7 +71,7 @@ class DisplayFilenameAndLayerOnLCD(Script):
|
|||||||
max_layer = max_layer.split(":")[1]
|
max_layer = max_layer.split(":")[1]
|
||||||
if line.startswith(";LAYER:"):
|
if line.startswith(";LAYER:"):
|
||||||
if self.getSettingValueByKey("maxlayer"):
|
if self.getSettingValueByKey("maxlayer"):
|
||||||
display_text = display_text + " of " + max_layer + "!"
|
display_text = display_text + " of " + max_layer
|
||||||
else:
|
else:
|
||||||
display_text = display_text + "!"
|
display_text = display_text + "!"
|
||||||
line_index = lines.index(line)
|
line_index = lines.index(line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user