mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
add result to pyqtslot and indicate the return value type
This commit is contained in:
parent
7ebad9c107
commit
ae821e6e99
1 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ class CuraActions(QObject):
|
|||
def _openUrl(self, url: QUrl) -> None:
|
||||
QDesktopServices.openUrl(url)
|
||||
|
||||
@pyqtSlot()
|
||||
def supportProjectTag(self):
|
||||
@pyqtSlot(result=str)
|
||||
def supportProjectTag(self) -> str:
|
||||
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