mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
CURA-5164 Reuse method savePreferences
This commit is contained in:
parent
5704a7b184
commit
74ef906949
1 changed files with 1 additions and 3 deletions
|
@ -10,7 +10,6 @@ import time
|
|||
import numpy
|
||||
|
||||
from PyQt5.QtCore import QObject, QTimer, QUrl, pyqtSignal, pyqtProperty, QEvent, Q_ENUMS
|
||||
from PyQt5.QtNetwork import QLocalServer
|
||||
from PyQt5.QtGui import QColor, QIcon
|
||||
from PyQt5.QtWidgets import QMessageBox
|
||||
from PyQt5.QtQml import qmlRegisterUncreatableType, qmlRegisterSingletonType, qmlRegisterType
|
||||
|
@ -597,8 +596,7 @@ class CuraApplication(QtApplication):
|
|||
# Do not do saving during application start or when data should not be safed on quit.
|
||||
return
|
||||
ContainerRegistry.getInstance().saveDirtyContainers()
|
||||
Preferences.getInstance().writeToFile(Resources.getStoragePath(Resources.Preferences,
|
||||
self._application_name + ".cfg"))
|
||||
self.savePreferences()
|
||||
|
||||
def saveStack(self, stack):
|
||||
ContainerRegistry.getInstance().saveContainer(stack)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue