mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-02 23:31:42 -07:00
Hide output device selection when there is only one option
CURA-1539
This commit is contained in:
parent
12140fb7f1
commit
9b1867cdaf
1 changed files with 3 additions and 3 deletions
|
|
@ -80,8 +80,8 @@ Rectangle {
|
||||||
height: UM.Theme.getSize("save_button_save_to_button").height
|
height: UM.Theme.getSize("save_button_save_to_button").height
|
||||||
|
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.right: deviceSelectionMenu.left;
|
anchors.right: deviceSelectionMenu.visible ? deviceSelectionMenu.left : parent.right
|
||||||
anchors.rightMargin: -3 * UM.Theme.getSize("default_lining").width;
|
anchors.rightMargin: deviceSelectionMenu.visible ? -3 * UM.Theme.getSize("default_lining").width : UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
text: UM.OutputDeviceManager.activeDeviceShortDescription
|
text: UM.OutputDeviceManager.activeDeviceShortDescription
|
||||||
onClicked:
|
onClicked:
|
||||||
|
|
@ -128,8 +128,8 @@ Rectangle {
|
||||||
width: UM.Theme.getSize("save_button_save_to_button").height
|
width: UM.Theme.getSize("save_button_save_to_button").height
|
||||||
height: UM.Theme.getSize("save_button_save_to_button").height
|
height: UM.Theme.getSize("save_button_save_to_button").height
|
||||||
enabled: base.backendState == 2 && base.activity == true
|
enabled: base.backendState == 2 && base.activity == true
|
||||||
|
visible: devicesModel.deviceCount > 1
|
||||||
|
|
||||||
//iconSource: UM.Theme.icons[UM.OutputDeviceManager.activeDeviceIconName];
|
|
||||||
|
|
||||||
style: ButtonStyle {
|
style: ButtonStyle {
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue