mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 19:49:02 +08:00
Add a "Favorites" heading to materials menu
Contributes to CURA-5162 Also fixed some non i18n strings
This commit is contained in:
parent
40c4e9c5df
commit
694cc91ae9
@ -10,7 +10,7 @@ import Cura 1.0 as Cura
|
|||||||
Menu
|
Menu
|
||||||
{
|
{
|
||||||
id: menu
|
id: menu
|
||||||
title: "Material"
|
title: catalog.i18nc("@label:category menu label", "Material")
|
||||||
|
|
||||||
property int extruderIndex: 0
|
property int extruderIndex: 0
|
||||||
|
|
||||||
@ -32,6 +32,12 @@ Menu
|
|||||||
extruderPosition: menu.extruderIndex
|
extruderPosition: menu.extruderIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MenuItem
|
||||||
|
{
|
||||||
|
text: catalog.i18nc("@label:category menu label", "Favorites")
|
||||||
|
enabled: false
|
||||||
|
visible: favoriteMaterialsModel.items.length > 0
|
||||||
|
}
|
||||||
Instantiator
|
Instantiator
|
||||||
{
|
{
|
||||||
model: favoriteMaterialsModel
|
model: favoriteMaterialsModel
|
||||||
@ -52,7 +58,7 @@ Menu
|
|||||||
Menu
|
Menu
|
||||||
{
|
{
|
||||||
id: genericMenu
|
id: genericMenu
|
||||||
title: "Generic"
|
title: catalog.i18nc("@label:category menu label", "Generic")
|
||||||
|
|
||||||
Instantiator
|
Instantiator
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user