Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantinos Karmas <konskarm@gmail.com>2021-10-04 17:47:48 +0300
committerKonstantinos Karmas <konskarm@gmail.com>2021-10-04 17:47:48 +0300
commitce34e16cdd731ff07c6362a084c0cf7f5b5acda5 (patch)
treeecc88d0cf469ce4d9f21ff81651745a656a9aa08 /cura/Machines/Models
parent4b7f385077477a4d73e61007d8468f701a343cf7 (diff)
Add documentation
CURA-8254
Diffstat (limited to 'cura/Machines/Models')
-rw-r--r--cura/Machines/Models/MaterialManagementModel.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/cura/Machines/Models/MaterialManagementModel.py b/cura/Machines/Models/MaterialManagementModel.py
index c174625bb7..8747e2279c 100644
--- a/cura/Machines/Models/MaterialManagementModel.py
+++ b/cura/Machines/Models/MaterialManagementModel.py
@@ -36,9 +36,12 @@ class MaterialManagementModel(QObject):
self._checkIfNewMaterialsWereInstalled()
def _checkIfNewMaterialsWereInstalled(self):
+ """
+ Checks whether new material packages were installed in the latest startup. If there were, then it shows
+ a message prompting the user to sync the materials with their printers.
+ """
application = cura.CuraApplication.CuraApplication.getInstance()
new_materials_installed = False
- print(application.getPackageManager().installed_packages)
for package_id, package_info in application.getPackageManager().installed_packages.items():
new_materials_installed = package_info["package_info"]["package_type"] == "material"
if new_materials_installed:
@@ -57,6 +60,7 @@ class MaterialManagementModel(QObject):
"sync",
name = catalog.i18nc("@action:button", "Sync materials with printers"),
icon = "",
+ description = "Sync your newly installed materials with your printers.",
button_align = Message.ActionButtonAlignment.ALIGN_RIGHT
)
@@ -64,6 +68,7 @@ class MaterialManagementModel(QObject):
"learn_more",
name = catalog.i18nc("@action:button", "Learn more"),
icon = "",
+ description = "Learn more about syncing your newly installed materials with your printers.",
button_align = Message.ActionButtonAlignment.ALIGN_LEFT,
button_style = Message.ActionButtonStyle.LINK
)