mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Remove "Sync" button
CURA-4211
This commit is contained in:
parent
e15a96263d
commit
fc7207e77e
3 changed files with 0 additions and 72 deletions
|
@ -125,8 +125,6 @@ class CuraApplication(QtApplication):
|
|||
# Cura will always show the Add Machine Dialog upon start.
|
||||
stacksValidationFinished = pyqtSignal() # Emitted whenever a validation is finished
|
||||
|
||||
syncConfigurationFromPrinter = pyqtSignal() # Emitted when the user wants to sync configuration from printer
|
||||
|
||||
def __init__(self):
|
||||
# this list of dir names will be used by UM to detect an old cura directory
|
||||
for dir_name in ["extruders", "machine_instances", "materials", "plugins", "quality", "user", "variants"]:
|
||||
|
@ -1395,7 +1393,3 @@ class CuraApplication(QtApplication):
|
|||
node = node.getParent()
|
||||
|
||||
Selection.add(node)
|
||||
|
||||
@pyqtSlot()
|
||||
def startSyncingConfigurationFromPrinter(self):
|
||||
self.syncConfigurationFromPrinter.emit()
|
||||
|
|
|
@ -26,7 +26,6 @@ class DiscoverUM3Action(MachineAction):
|
|||
self.__additional_components_view = None
|
||||
|
||||
Application.getInstance().engineCreatedSignal.connect(self._createAdditionalComponentsView)
|
||||
Application.getInstance().syncConfigurationFromPrinter.connect(self.loadConfigurationFromPrinter)
|
||||
|
||||
self._last_zeroconf_event_time = time.time()
|
||||
self._zeroconf_change_grace_period = 0.25 # Time to wait after a zeroconf service change before allowing a zeroconf reset
|
||||
|
|
|
@ -47,71 +47,6 @@ Column
|
|||
color: UM.Theme.getColor("text")
|
||||
visible: extruderSelectionRow.visible
|
||||
}
|
||||
|
||||
Button
|
||||
{
|
||||
id: syncMachineButton
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.right: parent.right
|
||||
text: catalog.i18nc("@button:action", "Sync")
|
||||
visible: extruderSelectionRow.visible
|
||||
|
||||
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
|
||||
enabled: printerConnected
|
||||
|
||||
onClicked:
|
||||
{
|
||||
CuraApplication.startSyncingConfigurationFromPrinter();
|
||||
}
|
||||
|
||||
style: ButtonStyle
|
||||
{
|
||||
background: Rectangle
|
||||
{
|
||||
implicitWidth: UM.Theme.getSize("button").width * 1.1
|
||||
implicitHeight: UM.Theme.getSize("sidebar_tabs").height / 3
|
||||
color: "transparent"
|
||||
}
|
||||
label: Item
|
||||
{
|
||||
implicitWidth: UM.Theme.getSize("button").width * 1.1
|
||||
implicitHeight: UM.Theme.getSize("sidebar_tabs").height / 3
|
||||
Label
|
||||
{
|
||||
id: labelText
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: UM.Theme.getSize("default_lining").width
|
||||
anchors.right: downArrow.left
|
||||
anchors.rightMargin: UM.Theme.getSize("default_margin").width / 2
|
||||
anchors.top: parent.top
|
||||
|
||||
text: control.text
|
||||
font: UM.Theme.getFont("default")
|
||||
color: control.hovered ? UM.Theme.getColor("sync_button_text_hovered") : UM.Theme.getColor("sync_button_text")
|
||||
|
||||
elide: Text.ElideRight;
|
||||
verticalAlignment: Text.AlignVCenter;
|
||||
}
|
||||
|
||||
UM.RecolorImage
|
||||
{
|
||||
id: downArrow
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: UM.Theme.getSize("default_lining").width * 2
|
||||
anchors.top: labelText.top
|
||||
anchors.topMargin: UM.Theme.getSize("default_margin").height / 3
|
||||
|
||||
source: UM.Theme.getIcon("arrow_bottom")
|
||||
width: UM.Theme.getSize("standard_arrow").width
|
||||
height: UM.Theme.getSize("standard_arrow").height
|
||||
sourceSize.width: width + 5
|
||||
sourceSize.height: width + 5
|
||||
|
||||
color: control.hovered ? UM.Theme.getColor("sync_button_text_hovered") : UM.Theme.getColor("sync_button_text")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue