mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:39:04 +08:00
Don't allow creating profiles based on empty_profile
...because empty_profile has no quality_type CURA-2271
This commit is contained in:
parent
e312530840
commit
95fabbaf6d
@ -137,7 +137,7 @@ Item
|
|||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: addProfileAction;
|
id: addProfileAction;
|
||||||
enabled: Cura.MachineManager.isActiveStackValid && Cura.MachineManager.hasUserSettings
|
enabled: Cura.MachineManager.isActiveStackValid && Cura.MachineManager.hasUserSettings && Cura.MachineManager.activeQualityId != "empty_quality"
|
||||||
text: catalog.i18nc("@action:inmenu menubar:profile","&Create profile from current settings...");
|
text: catalog.i18nc("@action:inmenu menubar:profile","&Create profile from current settings...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ UM.ManagementPage
|
|||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "Create")
|
text: catalog.i18nc("@label", "Create")
|
||||||
enabled: base.canCreateProfile()
|
enabled: base.canCreateProfile() && Cura.MachineManager.activeQualityId != "empty_quality"
|
||||||
visible: base.canCreateProfile()
|
visible: base.canCreateProfile()
|
||||||
iconName: "list-add";
|
iconName: "list-add";
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ UM.ManagementPage
|
|||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "Duplicate")
|
text: catalog.i18nc("@label", "Duplicate")
|
||||||
enabled: ! base.canCreateProfile()
|
enabled: ! base.canCreateProfile() && Cura.MachineManager.activeQualityId != "empty_quality"
|
||||||
visible: ! base.canCreateProfile()
|
visible: ! base.canCreateProfile()
|
||||||
iconName: "list-add";
|
iconName: "list-add";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user