Add a "Favorites" heading to materials menu

Contributes to CURA-5162

Also fixed some non i18n strings
This commit is contained in:
Ian Paschal 2018-08-28 11:21:47 +02:00
parent 40c4e9c5df
commit 694cc91ae9

View file

@ -10,7 +10,7 @@ import Cura 1.0 as Cura
Menu
{
id: menu
title: "Material"
title: catalog.i18nc("@label:category menu label", "Material")
property int extruderIndex: 0
@ -32,6 +32,12 @@ Menu
extruderPosition: menu.extruderIndex
}
MenuItem
{
text: catalog.i18nc("@label:category menu label", "Favorites")
enabled: false
visible: favoriteMaterialsModel.items.length > 0
}
Instantiator
{
model: favoriteMaterialsModel
@ -52,7 +58,7 @@ Menu
Menu
{
id: genericMenu
title: "Generic"
title: catalog.i18nc("@label:category menu label", "Generic")
Instantiator
{