mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-10 15:28:56 -07:00
Merge branch 'master' of ssh://github.com/Ultimaker/Cura
This commit is contained in:
commit
0e564abbea
11 changed files with 114 additions and 27 deletions
|
|
@ -133,7 +133,19 @@ Button
|
|||
Cura.ToolTip
|
||||
{
|
||||
id: tooltip
|
||||
visible: button.hovered && buttonTextMetrics.elidedText != buttonText.text
|
||||
visible:
|
||||
{
|
||||
if (!button.hovered)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (tooltipText == button.text)
|
||||
{
|
||||
return buttonTextMetrics.elidedText != buttonText.text;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
targetPoint: Qt.point(parent.x, Math.round(parent.y + parent.height / 2))
|
||||
}
|
||||
|
||||
BusyIndicator
|
||||
|
|
|
|||
|
|
@ -151,9 +151,10 @@ Item
|
|||
// Create a local printer
|
||||
const localPrinterItem = addLocalPrinterDropDown.contentItem.currentItem
|
||||
const printerName = addLocalPrinterDropDown.contentItem.printerName
|
||||
Cura.MachineManager.addMachine(localPrinterItem.id, printerName)
|
||||
|
||||
base.showNextPage()
|
||||
if(Cura.MachineManager.addMachine(localPrinterItem.id, printerName))
|
||||
{
|
||||
base.showNextPage()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue