mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06: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
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue