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:
authorGhostkeeper <rubend@tutanota.com>2022-08-01 11:37:33 +0300
committerGhostkeeper <rubend@tutanota.com>2022-08-01 11:49:29 +0300
commit84cf72d58f5b21dd9ae2621ed4b8f1bd32506163 (patch)
tree261f15c88d98afa2d65b6d57ad59b6a2e6a7dbf9 /cura/PrinterOutput
parentda289b51d0c05ad1aa0042518e273c922bcf3bed (diff)
Document shortcoming of isMine check
Contributes to issue CURA-9220.
Diffstat (limited to 'cura/PrinterOutput')
-rw-r--r--cura/PrinterOutput/Models/PrintJobOutputModel.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cura/PrinterOutput/Models/PrintJobOutputModel.py b/cura/PrinterOutput/Models/PrintJobOutputModel.py
index 9e2f7420e2..6b8e07b29e 100644
--- a/cura/PrinterOutput/Models/PrintJobOutputModel.py
+++ b/cura/PrinterOutput/Models/PrintJobOutputModel.py
@@ -92,6 +92,11 @@ class PrintJobOutputModel(QObject):
def isMine(self) -> bool:
"""
Returns whether this print job was sent by the currently logged in user.
+
+ This checks the owner of the print job with the owner of the currently
+ logged in account. Both of these are human-readable account names which
+ may be duplicate. In practice the harm here is limited, but it's the
+ best we can do with the information available to the API.
"""
return self._owner == CuraApplication.getInstance().getCuraAPI().account.userName