mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Apply suggestions from code review
Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com> Co-authored-by: Jelle Spijker <j.spijker@ultimaker.com>
This commit is contained in:
parent
e03b4e07f9
commit
1e6184448c
11 changed files with 26 additions and 25 deletions
|
|
@ -43,7 +43,7 @@ Cura.ComboBox {
|
|||
var value = propertyProvider.properties["options"][key]
|
||||
comboboxModel.append({ text: value, code: key})
|
||||
|
||||
if (propertyProvider.properties.value == key)
|
||||
if (propertyProvider.properties.value === key)
|
||||
{
|
||||
// The combobox is cleared after each value change so the currentIndex must be set each time.
|
||||
currentIndex = i
|
||||
|
|
@ -81,7 +81,7 @@ Cura.ComboBox {
|
|||
|
||||
function parseValueAndUpdateSetting()
|
||||
{
|
||||
if (comboboxModel.get(currentIndex) && comboboxModel.get(currentIndex).code != propertyProvider.properties.value)
|
||||
if (comboboxModel.get(currentIndex) && comboboxModel.get(currentIndex).code !== propertyProvider.properties.value)
|
||||
{
|
||||
updateSetting(comboboxModel.get(currentIndex).code)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue