mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Hide the toolbar and don't show time and material information when loading a gcode
Contributes to CURA-5979.
This commit is contained in:
parent
077b34b433
commit
92d0717096
2 changed files with 8 additions and 2 deletions
|
@ -18,6 +18,7 @@ Column
|
|||
id: widget
|
||||
|
||||
spacing: UM.Theme.getSize("thin_margin").height
|
||||
property bool preSlicedData: PrintInformation.preSliced
|
||||
|
||||
UM.I18nCatalog
|
||||
{
|
||||
|
@ -48,7 +49,7 @@ Column
|
|||
id: estimatedTime
|
||||
width: parent.width
|
||||
|
||||
text: PrintInformation.currentPrintTime.getDisplayString(UM.DurationFormat.Long)
|
||||
text: preSlicedData ? catalog.i18nc("@label", "No time estimation available") : PrintInformation.currentPrintTime.getDisplayString(UM.DurationFormat.Long)
|
||||
source: UM.Theme.getIcon("clock")
|
||||
font: UM.Theme.getFont("small")
|
||||
}
|
||||
|
@ -63,6 +64,10 @@ Column
|
|||
|
||||
text:
|
||||
{
|
||||
if (preSlicedData)
|
||||
{
|
||||
return catalog.i18nc("@label", "No cost estimation available")
|
||||
}
|
||||
var totalLengths = 0
|
||||
var totalWeights = 0
|
||||
if (printMaterialLengths)
|
||||
|
@ -86,6 +91,7 @@ Column
|
|||
PrintInformationWidget
|
||||
{
|
||||
id: printInformationPanel
|
||||
visible: !preSlicedData
|
||||
|
||||
anchors
|
||||
{
|
||||
|
|
|
@ -212,7 +212,7 @@ UM.MainWindow
|
|||
verticalCenter: parent.verticalCenter
|
||||
left: parent.left
|
||||
}
|
||||
visible: CuraApplication.platformActivity
|
||||
visible: CuraApplication.platformActivity && !PrintInformation.preSliced
|
||||
}
|
||||
|
||||
ObjectsList
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue