mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
CURA-5035 Review feedback
This commit is contained in:
parent
3934f6f1b3
commit
62aeb6c954
10 changed files with 9 additions and 78 deletions
|
@ -18,7 +18,7 @@ Item
|
|||
{
|
||||
anchors
|
||||
{
|
||||
right: detailList.right
|
||||
right: parent.right
|
||||
topMargin: UM.Theme.getSize("wide_margin").height
|
||||
bottomMargin: UM.Theme.getSize("wide_margin").height
|
||||
top: parent.top
|
||||
|
|
|
@ -11,7 +11,7 @@ Column
|
|||
{
|
||||
// HACK: GridLayouts don't render to the correct height with odd numbers of
|
||||
// items, so if odd, add some extra space.
|
||||
height: grid.model.items.length % 2 == 0 ? childrenRect.height : childrenRect.height + 3 * UM.Theme.getSize("wide_margin").height
|
||||
height: grid.model.items.length % 2 == 0 ? childrenRect.height : childrenRect.height + UM.Theme.getSize("toolbox_thumbnail_small").height
|
||||
width: parent.width
|
||||
spacing: UM.Theme.getSize("default_margin").height
|
||||
Label
|
||||
|
|
|
@ -15,7 +15,7 @@ Item
|
|||
Label
|
||||
{
|
||||
visible: toolbox.restartRequired
|
||||
text: "You will need to restart Cura before changes in plugins have effect."
|
||||
text: catalog.i18nc("@info", "You will need to restart Cura before changes in plugins have effect.")
|
||||
height: Math.floor(UM.Theme.getSize("toolbox_footer_button").height)
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
anchors
|
||||
|
@ -30,7 +30,7 @@ Item
|
|||
Button
|
||||
{
|
||||
id: restartButton
|
||||
text: "Quit Cura"
|
||||
text: catalog.i18nc("@info:button", "Quit Cura")
|
||||
anchors
|
||||
{
|
||||
top: parent.top
|
||||
|
|
|
@ -42,7 +42,7 @@ UM.Dialog
|
|||
anchors.right: parent.right
|
||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||
readOnly: true
|
||||
text: licenseDialog.licenseContent != null ? licenseDialog.licenseContent : ""
|
||||
text: licenseDialog.licenseContent
|
||||
}
|
||||
}
|
||||
rightButtons:
|
||||
|
|
|
@ -13,7 +13,7 @@ Rectangle
|
|||
color: "transparent"
|
||||
Label
|
||||
{
|
||||
text: "Fetching packages..."
|
||||
text: catalog.i18nc("@info", "Fetching packages...")
|
||||
anchors
|
||||
{
|
||||
centerIn: parent
|
||||
|
|
|
@ -310,7 +310,7 @@ class Toolbox(QObject, Extension):
|
|||
@pyqtSlot()
|
||||
def cancelDownload(self):
|
||||
Logger.log("i", "Toolbox: User cancelled the download of a plugin.")
|
||||
self.resetDownload();
|
||||
self.resetDownload()
|
||||
return
|
||||
|
||||
def resetDownload(self):
|
||||
|
@ -338,6 +338,7 @@ class Toolbox(QObject, Extension):
|
|||
|
||||
if reply.error() == QNetworkReply.HostNotFoundError:
|
||||
Logger.log("w", "Unable to reach server.")
|
||||
self.resetDownload()
|
||||
return
|
||||
|
||||
if reply.operation() == QNetworkAccessManager.GetOperation:
|
||||
|
@ -363,7 +364,6 @@ class Toolbox(QObject, Extension):
|
|||
self._models["plugins_showcase"].setMetadata(self._metadata["plugins_showcase"])
|
||||
self._metadata["materials_showcase"] = json_data["data"]["material"]["authors"]
|
||||
self._models["materials_showcase"].setMetadata(self._metadata["materials_showcase"])
|
||||
print("MATERIAL SHOWCASE", self._metadata["materials_showcase"])
|
||||
else:
|
||||
# ...until here.
|
||||
# This hack arises for multiple reasons but the main
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue