- preprocessors are no longer ordered in the comboboxes so I had to sort them manually

This commit is contained in:
Marius Stanciu
2020-11-08 05:17:12 +02:00
committed by Marius
parent 7a5aa572f7
commit efa69d1941
7 changed files with 311 additions and 292 deletions

View File

@@ -420,8 +420,14 @@ class GeometryObject(FlatCAMObj, Geometry):
# make sure the preprocessor combobox is clear
self.ui.pp_geometry_name_cb.clear()
# populate preprocessor names in the combobox
pp_list = []
for name in list(self.app.preprocessors.keys()):
self.ui.pp_geometry_name_cb.addItem(name)
pp_list.append(name)
pp_list.sort()
if 'default' in pp_list:
pp_list.remove('default')
pp_list.insert(0, 'default')
self.ui.pp_geometry_name_cb.addItems(pp_list)
# add tooltips
for it in range(self.ui.pp_geometry_name_cb.count()):
self.ui.pp_geometry_name_cb.setItemData(