mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 09:19:01 +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
|
||||
{
|
||||
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…
x
Reference in New Issue
Block a user