mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:05:55 +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._platform_activity = False
|
||||||
self._scene_bounding_box = AxisAlignedBox.Null
|
self._scene_bounding_box = AxisAlignedBox.Null
|
||||||
|
|
||||||
self._job_name = None
|
|
||||||
self._center_after_select = False
|
self._center_after_select = False
|
||||||
self._camera_animation = None
|
self._camera_animation = None
|
||||||
self._cura_actions = None
|
self._cura_actions = None
|
||||||
|
@ -81,8 +81,8 @@ Item {
|
|||||||
text: PrintInformation.jobName
|
text: PrintInformation.jobName
|
||||||
horizontalAlignment: TextInput.AlignRight
|
horizontalAlignment: TextInput.AlignRight
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
text = text == "" ? "unnamed" : text;
|
var new_name = text == "" ? "unnamed" : text;
|
||||||
PrintInformation.setJobName(printJobTextfield.text, true);
|
PrintInformation.setJobName(new_name, true);
|
||||||
printJobTextfield.focus = false;
|
printJobTextfield.focus = false;
|
||||||
}
|
}
|
||||||
validator: RegExpValidator {
|
validator: RegExpValidator {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user