button.base_filename = base_filename
button.filename = filename
self._print_profile_options.append(button)
- if profile.getPreference('simpleModeProfile') == base_filename:
+ if profile.getProfileSetting('simpleModeProfile') == base_filename:
button.SetValue(True)
printMaterialPanel = wx.Panel(self)
button.base_filename = base_filename
button.filename = filename
self._print_material_options.append(button)
- if profile.getPreference('simpleModeMaterial') == base_filename:
+ if profile.getProfileSetting('simpleModeMaterial') == base_filename:
button.SetValue(True)
if profile.getMachineSetting('gcode_flavor') == 'UltiGCode':
def _update(self, e):
for button in self._print_profile_options:
if button.GetValue():
- profile.putPreference('simpleModeProfile', button.base_filename)
+ profile.putProfileSetting('simpleModeProfile', button.base_filename)
for button in self._print_material_options:
if button.GetValue():
- profile.putPreference('simpleModeMaterial', button.base_filename)
+ profile.putProfileSetting('simpleModeMaterial', button.base_filename)
self._callback()
def getSettingOverrides(self):
""", str, 'alteration', 'alteration')
setting('startMode', 'Simple', ['Simple', 'Normal'], 'preference', 'hidden')
-setting('simpleModeProfile', '2_normal', str, 'preference', 'hidden')
-setting('simpleModeMaterial', '1_pla', str, 'preference', 'hidden')
+setting('simpleModeProfile', '2_normal', str, 'hidden', 'hidden')
+setting('simpleModeMaterial', '1_pla', str, 'hidden', 'hidden')
setting('oneAtATime', 'True', bool, 'preference', 'hidden')
setting('lastFile', os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'resources', 'example', 'Rocktopus.stl')), str, 'preference', 'hidden')
setting('save_profile', 'False', bool, 'preference', 'hidden').setLabel(_("Save profile on slice"), _("When slicing save the profile as [stl_file]_profile.ini next to the model."))