mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 17:48:59 +08:00
CURA-4870 Hide the configuration selector if the connection is lost.
This commit is contained in:
parent
a03a57fd60
commit
747efda52b
@ -68,7 +68,8 @@ Button
|
|||||||
color: UM.Theme.getColor("text_emphasis")
|
color: UM.Theme.getColor("text_emphasis")
|
||||||
source: UM.Theme.getIcon("arrow_bottom")
|
source: UM.Theme.getIcon("arrow_bottom")
|
||||||
}
|
}
|
||||||
UM.RecolorImage {
|
UM.RecolorImage
|
||||||
|
{
|
||||||
id: sidebarComboBoxLabel
|
id: sidebarComboBoxLabel
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
@ -86,17 +87,15 @@ Button
|
|||||||
label: Label {}
|
label: Label {}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections
|
||||||
|
{
|
||||||
target: outputDevice
|
target: outputDevice
|
||||||
onUniqueConfigurationsChanged: {
|
onUniqueConfigurationsChanged: updateOnSync()
|
||||||
updateOnSync()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections
|
||||||
|
{
|
||||||
target: Cura.MachineManager
|
target: Cura.MachineManager
|
||||||
onCurrentConfigurationChanged: {
|
onCurrentConfigurationChanged: updateOnSync()
|
||||||
updateOnSync()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -109,7 +109,7 @@ Rectangle
|
|||||||
ConfigurationSelection
|
ConfigurationSelection
|
||||||
{
|
{
|
||||||
id: configSelection
|
id: configSelection
|
||||||
visible: isNetworkPrinter
|
visible: isNetworkPrinter && printerConnected
|
||||||
width: visible ? Math.round(base.width * 0.15) : 0
|
width: visible ? Math.round(base.width * 0.15) : 0
|
||||||
height: UM.Theme.getSize("sidebar_header").height
|
height: UM.Theme.getSize("sidebar_header").height
|
||||||
anchors.top: base.top
|
anchors.top: base.top
|
||||||
|
Loading…
x
Reference in New Issue
Block a user