mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:49:00 +08:00
Fix job name UI binding
CURA-5367 UI should always refer to PrintInformation for the job name.
This commit is contained in:
parent
39b71add07
commit
bbd019f9e5
@ -302,7 +302,6 @@ class CuraApplication(QtApplication):
|
||||
self._platform_activity = False
|
||||
self._scene_bounding_box = AxisAlignedBox.Null
|
||||
|
||||
self._job_name = None
|
||||
self._center_after_select = False
|
||||
self._camera_animation = None
|
||||
self._cura_actions = None
|
||||
|
@ -81,8 +81,8 @@ Item {
|
||||
text: PrintInformation.jobName
|
||||
horizontalAlignment: TextInput.AlignRight
|
||||
onEditingFinished: {
|
||||
text = text == "" ? "unnamed" : text;
|
||||
PrintInformation.setJobName(printJobTextfield.text, true);
|
||||
var new_name = text == "" ? "unnamed" : text;
|
||||
PrintInformation.setJobName(new_name, true);
|
||||
printJobTextfield.focus = false;
|
||||
}
|
||||
validator: RegExpValidator {
|
||||
|
Loading…
x
Reference in New Issue
Block a user