mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Conflict resolvement boxes are now invisible if there is nothing to resolve
CURA-1263
This commit is contained in:
parent
c50d0172cc
commit
3345e918e8
1 changed files with 7 additions and 6 deletions
|
@ -19,6 +19,7 @@ UM.Dialog
|
|||
height: 350 * Screen.devicePixelRatio;
|
||||
minimumHeight: 350 * Screen.devicePixelRatio;
|
||||
maximumHeight: 350 * Screen.devicePixelRatio;
|
||||
property int comboboxHeight: 20
|
||||
|
||||
onClosing: manager.notifyClosed()
|
||||
onVisibleChanged:
|
||||
|
@ -101,7 +102,8 @@ UM.Dialog
|
|||
{
|
||||
id: machineResolveTooltip
|
||||
width: parent.width / 3
|
||||
height: visible ? 25 : 0
|
||||
height: visible ? comboboxHeight : 0
|
||||
visible: manager.machineConflict
|
||||
text: catalog.i18nc("@info:tooltip", "How should the conflict in the machine be resolved?")
|
||||
ComboBox
|
||||
{
|
||||
|
@ -109,7 +111,6 @@ UM.Dialog
|
|||
textRole: "label"
|
||||
id: machineResolveComboBox
|
||||
width: parent.width
|
||||
enabled: manager.machineConflict
|
||||
onActivated:
|
||||
{
|
||||
manager.setResolveStrategy("machine", resolveStrategiesModel.get(index).key)
|
||||
|
@ -143,14 +144,14 @@ UM.Dialog
|
|||
{
|
||||
id: qualityChangesResolveTooltip
|
||||
width: parent.width / 3
|
||||
height: visible ? 25 : 0
|
||||
height: visible ? comboboxHeight : 0
|
||||
visible: manager.qualityChangesConflict
|
||||
text: catalog.i18nc("@info:tooltip", "How should the conflict in the profile be resolved?")
|
||||
ComboBox
|
||||
{
|
||||
model: resolveStrategiesModel
|
||||
textRole: "label"
|
||||
id: qualityChangesResolveComboBox
|
||||
enabled: manager.qualityChangesConflict
|
||||
width: parent.width
|
||||
onActivated:
|
||||
{
|
||||
|
@ -201,14 +202,14 @@ UM.Dialog
|
|||
{
|
||||
id: materialResolveTooltip
|
||||
width: parent.width / 3
|
||||
height: visible ? 25 : 0
|
||||
height: visible ? comboboxHeight : 0
|
||||
visible: manager.materialConflict
|
||||
text: catalog.i18nc("@info:tooltip", "How should the conflict in the profile be resolved?")
|
||||
ComboBox
|
||||
{
|
||||
model: resolveStrategiesModel
|
||||
textRole: "label"
|
||||
id: materialResolveComboBox
|
||||
enabled: manager.materialConflict
|
||||
width: parent.width
|
||||
onActivated:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue