mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 22:23:57 -06:00
add timestamp to curaAction
This commit is contained in:
parent
6cf55cd743
commit
170b25749c
1 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,8 @@ from cura.Operations.SetBuildPlateNumberOperation import SetBuildPlateNumberOper
|
|||
from UM.Logger import Logger
|
||||
from UM.Scene.SceneNode import SceneNode
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
class CuraActions(QObject):
|
||||
def __init__(self, parent: QObject = None) -> None:
|
||||
super().__init__(parent)
|
||||
|
@ -280,3 +282,7 @@ class CuraActions(QObject):
|
|||
|
||||
def _openUrl(self, url: QUrl) -> None:
|
||||
QDesktopServices.openUrl(url)
|
||||
|
||||
def supportProjectTag(self):
|
||||
timestamp = datetime.now().strftime("%Y%m%d-%H%M%S")
|
||||
return f"exported-project-for-support-{timestamp}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue