mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 06:45:57 +08:00
Hide output device selection when there is only one option
CURA-1539
This commit is contained in:
parent
12140fb7f1
commit
9b1867cdaf
@ -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…
x
Reference in New Issue
Block a user