Fixes a problem where some properties of tools where not saved correctly

This commit is contained in:
FlyingSamson
2024-07-05 19:34:25 +02:00
parent 4bf271c25a
commit 6c01aabd4a

View File

@@ -2505,35 +2505,35 @@ class ToolsDB2(QtWidgets.QWidget):
self.db_tool_dict[tool_id]['tools_mill_offset_value'] = val self.db_tool_dict[tool_id]['tools_mill_offset_value'] = val
elif wdg_name == "gdb_cutz": elif wdg_name == "gdb_cutz":
self.db_tool_dict[tool_id]['data']['cutz'] = val self.db_tool_dict[tool_id]['data']['tools_mill_cutz'] = val
elif wdg_name == "gdb_multidepth": elif wdg_name == "gdb_multidepth":
self.db_tool_dict[tool_id]['data']['multidepth'] = val self.db_tool_dict[tool_id]['data']['tools_mill_multidepth'] = val
elif wdg_name == "gdb_multidepth_entry": elif wdg_name == "gdb_multidepth_entry":
self.db_tool_dict[tool_id]['data']['depthperpass'] = val self.db_tool_dict[tool_id]['data']['tools_mill_depthperpass'] = val
elif wdg_name == "gdb_travelz": elif wdg_name == "gdb_travelz":
self.db_tool_dict[tool_id]['data']['travelz'] = val self.db_tool_dict[tool_id]['data']['tools_mill_travelz'] = val
elif wdg_name == "gdb_frxy": elif wdg_name == "gdb_frxy":
self.db_tool_dict[tool_id]['data']['feedrate'] = val self.db_tool_dict[tool_id]['data']['tools_mill_feedrate'] = val
elif wdg_name == "gdb_frz": elif wdg_name == "gdb_frz":
self.db_tool_dict[tool_id]['data']['feedrate_z'] = val self.db_tool_dict[tool_id]['data']['tools_mill_feedrate_z'] = val
elif wdg_name == "gdb_spindle": elif wdg_name == "gdb_spindle":
self.db_tool_dict[tool_id]['data']['spindlespeed'] = val self.db_tool_dict[tool_id]['data']['tools_mill_spindlespeed'] = val
elif wdg_name == "gdb_dwell": elif wdg_name == "gdb_dwell":
self.db_tool_dict[tool_id]['data']['dwell'] = val self.db_tool_dict[tool_id]['data']['tools_mill_dwell'] = val
elif wdg_name == "gdb_dwelltime": elif wdg_name == "gdb_dwelltime":
self.db_tool_dict[tool_id]['data']['dwelltime'] = val self.db_tool_dict[tool_id]['data']['tools_mill_dwelltime'] = val
elif wdg_name == "gdb_vdia": elif wdg_name == "gdb_vdia":
self.db_tool_dict[tool_id]['data']['vtipdia'] = val self.db_tool_dict[tool_id]['data']['tools_mill_vtipdia'] = val
elif wdg_name == "gdb_vangle": elif wdg_name == "gdb_vangle":
self.db_tool_dict[tool_id]['data']['vtipangle'] = val self.db_tool_dict[tool_id]['data']['tools_mill_vtipangle'] = val
elif wdg_name == "gdb_frapids": elif wdg_name == "gdb_frapids":
self.db_tool_dict[tool_id]['data']['feedrate_rapid'] = val self.db_tool_dict[tool_id]['data']['tools_mill_feedrate_rapid'] = val
elif wdg_name == "gdb_ecut": elif wdg_name == "gdb_ecut":
self.db_tool_dict[tool_id]['data']['extracut'] = val self.db_tool_dict[tool_id]['data']['tools_mill_extracut'] = val
elif wdg_name == "gdb_ecut_length": elif wdg_name == "gdb_ecut_length":
self.db_tool_dict[tool_id]['data']['extracut_length'] = val self.db_tool_dict[tool_id]['data']['tools_mill_extracut_length'] = val
# NCC Tool # NCC Tool
elif wdg_name == "gdb_n_operation": elif wdg_name == "gdb_n_operation":