mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Apply suggestions from code review
Co-authored-by: Jelle Spijker <j.spijker@ultimaker.com>
This commit is contained in:
parent
741a112282
commit
ce5691c12d
15 changed files with 28 additions and 15 deletions
|
@ -68,7 +68,10 @@ Item
|
|||
}
|
||||
visible: currentModeIndex == PrintSetupSelectorContents.Mode.Recommended
|
||||
|
||||
function onModeChanged() { currentModeIndex = PrintSetupSelectorContents.Mode.Custom }
|
||||
function onModeChanged()
|
||||
{
|
||||
currentModeIndex = PrintSetupSelectorContents.Mode.Custom;
|
||||
}
|
||||
}
|
||||
|
||||
CustomPrintSetup
|
||||
|
@ -125,7 +128,8 @@ Item
|
|||
{
|
||||
id: buttonRow
|
||||
property real padding: UM.Theme.getSize("default_margin").width
|
||||
height: {
|
||||
height:
|
||||
{
|
||||
if (currentModeIndex == PrintSetupSelectorContents.Mode.Custom)
|
||||
{
|
||||
return recommendedButton.height + 2 * padding + (draggableArea.visible ? draggableArea.height : 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue