- prettified the defaults files and the recent file. Now they are ordered and human readable
This commit is contained in:
@@ -2310,7 +2310,7 @@ class App(QtCore.QObject):
|
|||||||
return
|
return
|
||||||
|
|
||||||
#try:
|
#try:
|
||||||
json.dump(self.recent, f)
|
json.dump(self.recent, f, default=to_dict, indent=2, sort_keys=True)
|
||||||
# except:
|
# except:
|
||||||
# App.log.error("Failed to write to recent items file.")
|
# App.log.error("Failed to write to recent items file.")
|
||||||
# self.inform.emit('ERROR: Failed to write to recent items file.')
|
# self.inform.emit('ERROR: Failed to write to recent items file.')
|
||||||
@@ -2684,7 +2684,7 @@ class App(QtCore.QObject):
|
|||||||
# Save update options
|
# Save update options
|
||||||
try:
|
try:
|
||||||
f = open(self.data_path + "/current_defaults.FlatConfig", "w")
|
f = open(self.data_path + "/current_defaults.FlatConfig", "w")
|
||||||
json.dump(defaults, f)
|
json.dump(defaults, f, default=to_dict, indent=2, sort_keys=True)
|
||||||
f.close()
|
f.close()
|
||||||
except:
|
except:
|
||||||
self.inform.emit("[ERROR_NOTCL] Failed to write defaults to file.")
|
self.inform.emit("[ERROR_NOTCL] Failed to write defaults to file.")
|
||||||
@@ -2757,7 +2757,7 @@ class App(QtCore.QObject):
|
|||||||
# Save update options
|
# Save update options
|
||||||
try:
|
try:
|
||||||
f_f_def_s = open(self.data_path + "/factory_defaults.FlatConfig", "w")
|
f_f_def_s = open(self.data_path + "/factory_defaults.FlatConfig", "w")
|
||||||
json.dump(factory_defaults, f_f_def_s)
|
json.dump(factory_defaults, f_f_def_s, default=to_dict, indent=2, sort_keys=True)
|
||||||
f_f_def_s.close()
|
f_f_def_s.close()
|
||||||
except:
|
except:
|
||||||
self.inform.emit("[ERROR_NOTCL] Failed to write factory defaults to file.")
|
self.inform.emit("[ERROR_NOTCL] Failed to write factory defaults to file.")
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ CAD program, and create G-Code for Isolation routing.
|
|||||||
24.02.2019
|
24.02.2019
|
||||||
|
|
||||||
- fixed a small bug in the Tool Solder Paste: the App don't take into consideration pads already filled with solder paste.
|
- fixed a small bug in the Tool Solder Paste: the App don't take into consideration pads already filled with solder paste.
|
||||||
|
- prettified the defaults files and the recent file. Now they are ordered and human readable
|
||||||
|
|
||||||
23.02.2019
|
23.02.2019
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user