mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 18:57:52 -06:00
Add tooltips for intent profiles to the Recommended Quality panel.
The description is optional. Tooltip will not show if no description is set CURA-6853
This commit is contained in:
parent
ad2077b76b
commit
3709cfa4ed
3 changed files with 51 additions and 12 deletions
|
@ -1586,8 +1586,9 @@ class MachineManager(QObject):
|
|||
|
||||
intent_category = self.activeIntentCategory
|
||||
if intent_category != "default":
|
||||
intent_display_name = IntentCategoryModel.name_translation.get(intent_category,
|
||||
catalog.i18nc("@label", "Unknown"))
|
||||
intent_display_name = IntentCategoryModel.translation(intent_category,
|
||||
"name",
|
||||
catalog.i18nc("@label", "Unknown"))
|
||||
display_name = "{intent_name} - {the_rest}".format(intent_name = intent_display_name,
|
||||
the_rest = display_name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue