add result to pyqtslot and indicate the return value type

This commit is contained in:
HellAholic 2024-09-16 14:28:33 +02:00
parent 7ebad9c107
commit ae821e6e99

View File

@ -283,7 +283,7 @@ class CuraActions(QObject):
def _openUrl(self, url: QUrl) -> None: def _openUrl(self, url: QUrl) -> None:
QDesktopServices.openUrl(url) QDesktopServices.openUrl(url)
@pyqtSlot() @pyqtSlot(result=str)
def supportProjectTag(self): def supportProjectTag(self) -> str:
timestamp = datetime.now().strftime("%Y%m%d-%H%M%S") timestamp = datetime.now().strftime("%Y%m%d-%H%M%S")
return f"exported-project-for-support-{timestamp}" return f"exported-project-for-support-{timestamp}"