Implement Review comments

CURA-5479
This commit is contained in:
Nino van Hooff 2020-07-01 16:47:20 +02:00
parent 24820bab07
commit 06284b6a73
3 changed files with 5 additions and 6 deletions

View File

@ -254,8 +254,7 @@ class PrintInformation(QObject):
def _onPreferencesChanged(self, preference: str) -> None: def _onPreferencesChanged(self, preference: str) -> None:
if preference == "cura/job_name_template": if preference == "cura/job_name_template":
self._updateJobName() self._updateJobName()
elif preference == "cura/material_settings":
if preference == "cura/material_settings":
for build_plate_number in range(self._multi_build_plate_model.maxBuildPlate + 1): for build_plate_number in range(self._multi_build_plate_model.maxBuildPlate + 1):
self._calculateInformation(build_plate_number) self._calculateInformation(build_plate_number)

View File

@ -642,7 +642,7 @@ UM.PreferencesPage
TextField TextField
{ {
id: jobNameTemplateTextField id: jobNameTemplateTextField
width: 200 * screenScaleFactor width: 250 * screenScaleFactor
text: UM.Preferences.getValue("cura/job_name_template") text: UM.Preferences.getValue("cura/job_name_template")
onTextChanged: UM.Preferences.setValue("cura/job_name_template", text) onTextChanged: UM.Preferences.setValue("cura/job_name_template", text)
} }
@ -681,7 +681,7 @@ UM.PreferencesPage
ComboBox ComboBox
{ {
id: choiceOnOpenProjectDropDownButton id: choiceOnOpenProjectDropDownButton
width: 200 * screenScaleFactor width: 250 * screenScaleFactor
model: ListModel model: ListModel
{ {
@ -747,7 +747,7 @@ UM.PreferencesPage
ComboBox ComboBox
{ {
id: choiceOnProfileOverrideDropDownButton id: choiceOnProfileOverrideDropDownButton
width: 200 * screenScaleFactor width: 250 * screenScaleFactor
model: ListModel model: ListModel
{ {