Replace symbols in default visible settings before usage

These characters are just for visualisation in the code. They should never be used during the normal operation of the program, nor should they be saved to the file. So just replace them immediately.

Contributes to issue CURA-1278.
This commit is contained in:
Ghostkeeper 2016-05-27 14:39:53 +02:00
parent 8bd06ee8ec
commit 41425fd36e
No known key found for this signature in database
GPG Key ID: 701948C5954A7385

View File

@ -150,42 +150,42 @@ class CuraApplication(QtApplication):
Preferences.getInstance().setDefault("local_file/last_used_type", "text/x-gcode") Preferences.getInstance().setDefault("local_file/last_used_type", "text/x-gcode")
Preferences.getInstance().setDefault("general/visible_settings", """ Preferences.getInstance().setDefault("general/visible_settings", """
machine_settings machine_settings
resolution resolution
layer_height layer_height
shell shell
wall_thickness wall_thickness
top_bottom_thickness top_bottom_thickness
infill infill
infill_sparse_density infill_sparse_density
material material
material_print_temperature material_print_temperature
material_bed_temperature material_bed_temperature
material_diameter material_diameter
material_flow material_flow
retraction_enable retraction_enable
speed speed
speed_print speed_print
speed_travel speed_travel
travel travel
cooling cooling
cool_fan_enabled cool_fan_enabled
support support
support_enable support_enable
support_type support_type
support_roof_density support_roof_density
platform_adhesion platform_adhesion
adhesion_type adhesion_type
brim_width brim_width
raft_airgap raft_airgap
layer_0_z_overlap layer_0_z_overlap
raft_surface_layers raft_surface_layers
meshfix meshfix
blackmagic blackmagic
print_sequence print_sequence
dual dual
experimental experimental
""") """.replace("\n", ";").replace(" ", ""))
JobQueue.getInstance().jobFinished.connect(self._onJobFinished) JobQueue.getInstance().jobFinished.connect(self._onJobFinished)