mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 23:06:13 +08:00
Remove the cleanup code as it causes too many issues
This commit is contained in:
parent
d7c5238b7f
commit
9542819c7f
@ -53,24 +53,7 @@ class CuraApplication(QtApplication):
|
|||||||
if not hasattr(sys, "frozen"):
|
if not hasattr(sys, "frozen"):
|
||||||
Resources.addResourcePath(os.path.join(os.path.abspath(os.path.dirname(__file__)), ".."))
|
Resources.addResourcePath(os.path.join(os.path.abspath(os.path.dirname(__file__)), ".."))
|
||||||
|
|
||||||
# Reset the configuration files if they exist on the machine, only for 15.05.xx releases
|
super().__init__(name = "cura", version = "15.06.01")
|
||||||
try:
|
|
||||||
Resources.ApplicationIdentifier = "cura"
|
|
||||||
parser = configparser.ConfigParser()
|
|
||||||
parser.read(Resources.getStoragePath(Resources.PreferencesLocation, "cura.cfg"))
|
|
||||||
except FileNotFoundError:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
if parser["general"]["version"] != "2":
|
|
||||||
Logger.log("i", "Found old settings files, removing them")
|
|
||||||
|
|
||||||
os.remove(Resources.getStoragePath(Resources.PreferencesLocation, "cura.cfg"))
|
|
||||||
|
|
||||||
path = Resources.getStorageLocation(Resources.SettingsLocation)
|
|
||||||
for file in os.listdir(path):
|
|
||||||
os.remove(os.path.join(path, file))
|
|
||||||
|
|
||||||
super().__init__(name = "cura", version = "15.06.00")
|
|
||||||
|
|
||||||
self.setWindowIcon(QIcon(Resources.getPath(Resources.ImagesLocation, "cura-icon.png")))
|
self.setWindowIcon(QIcon(Resources.getPath(Resources.ImagesLocation, "cura-icon.png")))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user