Merge branch 'master' into CS-234_network_plugin_code_quality

This commit is contained in:
ChrisTerBeke 2019-07-30 13:10:19 +02:00
commit 56f58c741a
4 changed files with 12 additions and 11 deletions

View File

@ -3,17 +3,14 @@ image: registry.gitlab.com/ultimaker/cura/cura-build-environment:centos7
stages: stages:
- build - build
build-and-test: build and test linux:
stage: build stage: build
tags:
- cura
- docker
- linux
script: script:
- docker/build.sh - docker/build.sh
artifacts: artifacts:
paths: paths:
- build - build
build-and-test_merge-requests:
stage: build
script:
- docker/build.sh
only:
- merge_requests

View File

@ -1,9 +1,8 @@
# Copyright (c) 2018 Ultimaker B.V. # Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher. # Cura is released under the terms of the LGPLv3 or higher.
from typing import Optional, TYPE_CHECKING from typing import Optional, TYPE_CHECKING, cast
from numpy import cast
from UM.Application import Application from UM.Application import Application
from UM.Resources import Resources from UM.Resources import Resources

View File

@ -45,6 +45,11 @@ Item
materialListView.expandActiveMaterial(active_root_material_id) materialListView.expandActiveMaterial(active_root_material_id)
} }
function setExpandedActiveMaterial(root_material_id)
{
materialListView.expandActiveMaterial(root_material_id)
}
// When loaded, try to select the active material in the tree // When loaded, try to select the active material in the tree
Component.onCompleted: resetExpandedActiveMaterial() Component.onCompleted: resetExpandedActiveMaterial()

View File

@ -60,7 +60,7 @@ Rectangle
{ {
materialList.currentBrand = material.brand materialList.currentBrand = material.brand
materialList.currentType = material.brand + "_" + material.material materialList.currentType = material.brand + "_" + material.material
base.currentItem = material base.setExpandedActiveMaterial(material.root_material_id)
} }
hoverEnabled: true hoverEnabled: true
onEntered: { materialSlot.hovered = true } onEntered: { materialSlot.hovered = true }