fix: exclude command line settings from being viewed in the frontend (CURA-566)

This commit is contained in:
Tim Kuipers 2016-11-07 11:54:20 +01:00
parent 5490d9cce9
commit e51f9ba678
4 changed files with 4 additions and 4 deletions

View file

@ -258,7 +258,7 @@ class CuraApplication(QtApplication):
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

View file

@ -401,7 +401,7 @@ Item {
} }
visibilityHandler: UM.SettingPreferenceVisibilityHandler {} visibilityHandler: UM.SettingPreferenceVisibilityHandler {}
expanded: [ "*" ] expanded: [ "*" ]
exclude: [ "machine_settings" ] exclude: [ "machine_settings", "command_line_settings" ]
} }
delegate:Loader delegate:Loader
{ {

View file

@ -116,7 +116,7 @@ UM.PreferencesPage
id: definitionsModel id: definitionsModel
containerId: Cura.MachineManager.activeDefinitionId containerId: Cura.MachineManager.activeDefinitionId
showAll: true showAll: true
exclude: ["machine_settings"] exclude: ["machine_settings", "command_line_settings"]
showAncestors: true showAncestors: true
expanded: ["*"] expanded: ["*"]
visibilityHandler: UM.SettingPreferenceVisibilityHandler { } visibilityHandler: UM.SettingPreferenceVisibilityHandler { }

View file

@ -30,7 +30,7 @@ ScrollView
id: definitionsModel; id: definitionsModel;
containerId: Cura.MachineManager.activeDefinitionId containerId: Cura.MachineManager.activeDefinitionId
visibilityHandler: UM.SettingPreferenceVisibilityHandler { } visibilityHandler: UM.SettingPreferenceVisibilityHandler { }
exclude: ["machine_settings", "infill_mesh", "infill_mesh_order"] exclude: ["machine_settings", "command_line_settings", "infill_mesh", "infill_mesh_order"] # TODO: infill_mesh settigns are excluded hardcoded, but should be based on the fact that settable_globally, settable_per_meshgroup and settable_per_extruder are false.
expanded: Printer.expandedCategories expanded: Printer.expandedCategories
onExpandedChanged: Printer.setExpandedCategories(expanded) onExpandedChanged: Printer.setExpandedCategories(expanded)
onVisibilityChanged: Cura.SettingInheritanceManager.forceUpdate() onVisibilityChanged: Cura.SettingInheritanceManager.forceUpdate()