mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
Remove duplicate imports
Contributes to issue CURA-5045.
This commit is contained in:
parent
da0d7a25c3
commit
2214a5f40a
1 changed files with 1 additions and 3 deletions
|
@ -18,7 +18,6 @@ from PyQt5.QtCore import QT_VERSION_STR, PYQT_VERSION_STR, Qt, QUrl
|
||||||
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QTextEdit, QGroupBox, QCheckBox, QPushButton
|
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QTextEdit, QGroupBox, QCheckBox, QPushButton
|
||||||
from PyQt5.QtGui import QDesktopServices
|
from PyQt5.QtGui import QDesktopServices
|
||||||
|
|
||||||
from UM.Resources import Resources
|
|
||||||
from UM.Application import Application
|
from UM.Application import Application
|
||||||
from UM.Logger import Logger
|
from UM.Logger import Logger
|
||||||
from UM.View.GL.OpenGL import OpenGL
|
from UM.View.GL.OpenGL import OpenGL
|
||||||
|
@ -131,10 +130,9 @@ class CrashHandler:
|
||||||
self._sendCrashReport()
|
self._sendCrashReport()
|
||||||
os._exit(1)
|
os._exit(1)
|
||||||
|
|
||||||
|
## Backup the current resource directories and create clean ones.
|
||||||
def _backupAndStartClean(self):
|
def _backupAndStartClean(self):
|
||||||
# backup the current cura directories and create clean ones
|
|
||||||
from cura.CuraVersion import CuraVersion
|
from cura.CuraVersion import CuraVersion
|
||||||
from UM.Resources import Resources
|
|
||||||
# The early crash may happen before those information is set in Resources, so we need to set them here to
|
# The early crash may happen before those information is set in Resources, so we need to set them here to
|
||||||
# make sure that Resources can find the correct place.
|
# make sure that Resources can find the correct place.
|
||||||
Resources.ApplicationIdentifier = "cura"
|
Resources.ApplicationIdentifier = "cura"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue