mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:29:01 +08:00
Merge branch 'master' into CS-234_network_plugin_code_quality
This commit is contained in:
commit
56f58c741a
@ -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
|
|
||||||
|
@ -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
|
||||||
|
@ -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()
|
||||||
|
|
||||||
|
@ -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 }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user