Skip to content

Commit

Permalink
[CPR] Add description to explain Drive Prefix (#377)
Browse files Browse the repository at this point in the history
added a description to the "Open File" dialog, so people know how to configure the Drive Prefix setting for their printer.
  • Loading branch information
bobafetthotmail authored Nov 14, 2023
1 parent dda8ba3 commit 40d6d72
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions qml/MonitorItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Component

Cura.SecondaryButton {
id: moreButton

anchors.top: percentageLabelSpacer.bottom
anchors.topMargin: UM.Theme.getSize("progressbar").height + Math.round(UM.Theme.getSize("thick_margin").height / 4) + UM.Theme.getSize("thick_margin").height
anchors.right: parent.right
Expand All @@ -262,6 +262,8 @@ Component
Column {
spacing: UM.Theme.getSize("default_margin").height

anchors.fill: parent

Row {
spacing: UM.Theme.getSize("default_margin").height

Expand Down Expand Up @@ -307,10 +309,21 @@ Component
}
}

Row {
spacing: UM.Theme.getSize("default_margin").height

UM.Label {
height: drivePrefixTextInput.height
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WordWrap
text: catalog.i18nc("@label", "If the Print/Delete buttons aren't working, adjust the Drive prefix above. \nChoose 'None' or '1:/' based on your printer's firmware (e.g., 'None' for Marlin, '1:/' for FlyingBear Ghost).")
}
}

Cura.ScrollView {
id: objectListContainer
width: sdDialog.width-UM.Theme.getSize("default_margin").height*1.5
height: sdDialog.height - btnPrint.height*2 - drivePrefixTextInput.height*2
height: sdDialog.height - btnPrint.height*2 - drivePrefixTextInput.height*2 -drivePrefixTextInput.height*2

ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded
Expand Down

0 comments on commit 40d6d72

Please sign in to comment.