Browse Source

Add source file type to anonymous usage statistics

Contributes to issue CURA-8232.
Ghostkeeper 3 years ago
parent
commit
77b7a29fca
2 changed files with 6 additions and 0 deletions
  1. 5 0
      plugins/SliceInfoPlugin/SliceInfo.py
  2. 1 0
      plugins/SliceInfoPlugin/example_data.html

+ 5 - 0
plugins/SliceInfoPlugin/SliceInfo.py

@@ -229,6 +229,11 @@ class SliceInfo(QObject, Extension):
 
                     model["model_settings"] = model_settings
 
+                    if node.source_mime_type is None:
+                        model["mime_type"] = ""
+                    else:
+                        model["mime_type"] = node.source_mime_type
+
                     data["models"].append(model)
 
             print_times = print_information.printTimes()

+ 1 - 0
plugins/SliceInfoPlugin/example_data.html

@@ -54,6 +54,7 @@
                 <li><b>Bounding Box:</b> [minimum x, y, z; maximum x, y, z]</li>
                 <li><b>Is Helper Mesh:</b> no</li>
                 <li><b>Helper Mesh Type:</b> support mesh</li>
+                <li><b>File type:</b> STL</li>
             </ul>
         </li>
     </ul>