mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-22 12:39:22 +08:00
CURA-5164 Reuse method savePreferences
This commit is contained in:
parent
5704a7b184
commit
74ef906949
@ -10,7 +10,6 @@ import time
|
|||||||
import numpy
|
import numpy
|
||||||
|
|
||||||
from PyQt5.QtCore import QObject, QTimer, QUrl, pyqtSignal, pyqtProperty, QEvent, Q_ENUMS
|
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.QtGui import QColor, QIcon
|
||||||
from PyQt5.QtWidgets import QMessageBox
|
from PyQt5.QtWidgets import QMessageBox
|
||||||
from PyQt5.QtQml import qmlRegisterUncreatableType, qmlRegisterSingletonType, qmlRegisterType
|
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.
|
# Do not do saving during application start or when data should not be safed on quit.
|
||||||
return
|
return
|
||||||
ContainerRegistry.getInstance().saveDirtyContainers()
|
ContainerRegistry.getInstance().saveDirtyContainers()
|
||||||
Preferences.getInstance().writeToFile(Resources.getStoragePath(Resources.Preferences,
|
self.savePreferences()
|
||||||
self._application_name + ".cfg"))
|
|
||||||
|
|
||||||
def saveStack(self, stack):
|
def saveStack(self, stack):
|
||||||
ContainerRegistry.getInstance().saveContainer(stack)
|
ContainerRegistry.getInstance().saveContainer(stack)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user