mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 10:25:58 +08:00
Merge branch '4.11' of https://github.com/Ultimaker/Cura into 4.11
This commit is contained in:
commit
57c6efd427
@ -48,8 +48,8 @@ class AuthorizationHelpers:
|
|||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
return self.parseTokenResponse(requests.post(self._token_url, data = data)) # type: ignore
|
return self.parseTokenResponse(requests.post(self._token_url, data = data)) # type: ignore
|
||||||
except requests.exceptions.ConnectionError:
|
except requests.exceptions.ConnectionError as connection_error:
|
||||||
return AuthenticationResponse(success=False, err_message="Unable to connect to remote server")
|
return AuthenticationResponse(success = False, err_message = f"Unable to connect to remote server: {connection_error}")
|
||||||
|
|
||||||
def getAccessTokenUsingRefreshToken(self, refresh_token: str) -> "AuthenticationResponse":
|
def getAccessTokenUsingRefreshToken(self, refresh_token: str) -> "AuthenticationResponse":
|
||||||
"""Request the access token from the authorization server using a refresh token.
|
"""Request the access token from the authorization server using a refresh token.
|
||||||
|
@ -456,8 +456,8 @@ class PauseAtHeight(Script):
|
|||||||
prepend_gcode += self.putValue(G = 1, E = -retraction_amount, F = 6000) + "\n"
|
prepend_gcode += self.putValue(G = 1, E = -retraction_amount, F = 6000) + "\n"
|
||||||
|
|
||||||
#Move the head back
|
#Move the head back
|
||||||
prepend_gcode += self.putValue(G = 1, Z = current_z, F = 300) + "\n"
|
|
||||||
prepend_gcode += self.putValue(G = 1, X = x, Y = y, F = 9000) + "\n"
|
prepend_gcode += self.putValue(G = 1, X = x, Y = y, F = 9000) + "\n"
|
||||||
|
prepend_gcode += self.putValue(G = 1, Z = current_z, F = 300) + "\n"
|
||||||
if retraction_amount != 0:
|
if retraction_amount != 0:
|
||||||
prepend_gcode += self.putValue(G = 1, E = retraction_amount, F = 6000) + "\n"
|
prepend_gcode += self.putValue(G = 1, E = retraction_amount, F = 6000) + "\n"
|
||||||
|
|
||||||
@ -491,7 +491,7 @@ class PauseAtHeight(Script):
|
|||||||
|
|
||||||
# Move the head back
|
# Move the head back
|
||||||
if current_z < 15:
|
if current_z < 15:
|
||||||
prepend_gcode += self.putValue(G = 1, Z = current_z + 1, F = 300) + "\n"
|
prepend_gcode += self.putValue(G = 1, Z = current_z, F = 300) + "\n"
|
||||||
prepend_gcode += self.putValue(G = 1, X = x, Y = y, F = 9000) + "\n"
|
prepend_gcode += self.putValue(G = 1, X = x, Y = y, F = 9000) + "\n"
|
||||||
prepend_gcode += self.putValue(G = 1, Z = current_z, F = 300) + " ; move back down to resume height\n"
|
prepend_gcode += self.putValue(G = 1, Z = current_z, F = 300) + " ; move back down to resume height\n"
|
||||||
if retraction_amount != 0:
|
if retraction_amount != 0:
|
||||||
|
@ -39,14 +39,14 @@ TabView
|
|||||||
}
|
}
|
||||||
if (!base.containerId || !base.editingEnabled || !base.currentMaterialNode)
|
if (!base.containerId || !base.editingEnabled || !base.currentMaterialNode)
|
||||||
{
|
{
|
||||||
return ""
|
return "";
|
||||||
}
|
}
|
||||||
var linkedMaterials = Cura.ContainerManager.getLinkedMaterials(base.currentMaterialNode, true);
|
var linkedMaterials = Cura.ContainerManager.getLinkedMaterials(base.currentMaterialNode, true);
|
||||||
if (linkedMaterials.length == 0)
|
if (linkedMaterials.length == 0)
|
||||||
{
|
{
|
||||||
return ""
|
return "";
|
||||||
}
|
}
|
||||||
return linkedMaterials;
|
return linkedMaterials.join(", ");
|
||||||
}
|
}
|
||||||
|
|
||||||
function getApproximateDiameter(diameter)
|
function getApproximateDiameter(diameter)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
import QtQuick 2.10
|
import QtQuick 2.10
|
||||||
import QtQuick.Controls 2.3
|
import QtQuick.Controls 2.3
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
|
import QtGraphicalEffects 1.12 // For the DropShadow
|
||||||
|
|
||||||
import UM 1.3 as UM
|
import UM 1.3 as UM
|
||||||
import Cura 1.1 as Cura
|
import Cura 1.1 as Cura
|
||||||
@ -91,6 +92,13 @@ Item
|
|||||||
source: manager.getSubpageImageSource(index)
|
source: manager.getSubpageImageSource(index)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DropShadow {
|
||||||
|
anchors.fill: subpageImage
|
||||||
|
radius: UM.Theme.getSize("monitor_shadow_radius").width
|
||||||
|
color: UM.Theme.getColor("first_run_shadow")
|
||||||
|
source: subpageImage
|
||||||
|
}
|
||||||
|
|
||||||
Cura.ScrollableTextArea
|
Cura.ScrollableTextArea
|
||||||
{
|
{
|
||||||
id: subpageText
|
id: subpageText
|
||||||
|
@ -168,7 +168,7 @@
|
|||||||
"size": "default"
|
"size": "default"
|
||||||
},
|
},
|
||||||
"pencil": {
|
"pencil": {
|
||||||
"new_icon": "Pencil",
|
"new_icon": "Pen",
|
||||||
"size": "default"
|
"size": "default"
|
||||||
},
|
},
|
||||||
"printing_guideline": {
|
"printing_guideline": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user