mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix dialog_on_ucp_project_save
preference
CURA-11403
This commit is contained in:
parent
6f9fd3c46d
commit
3c305bb289
3 changed files with 62 additions and 27 deletions
|
@ -53,8 +53,7 @@ class UCPDialog(QObject):
|
|||
def notifyClosed(self):
|
||||
self._onFinished()
|
||||
|
||||
@pyqtSlot()
|
||||
def _onAccepted(self):
|
||||
def save3mf(self):
|
||||
application = CuraApplication.getInstance()
|
||||
workspace_handler = application.getInstance().getWorkspaceFileHandler()
|
||||
|
||||
|
@ -92,7 +91,9 @@ class UCPDialog(QObject):
|
|||
Logger.logException("e", "Unable to write to file %s: %s", file_name, e)
|
||||
self._onRejected()
|
||||
|
||||
@pyqtSlot()
|
||||
def _onAccepted(self):
|
||||
self.save3mf()
|
||||
|
||||
def _onRejected(self):
|
||||
self._onFinished()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue