- added property that allow the FCComboBox to update the view with the last item loaded; updated the app to use this property
This commit is contained in:
@@ -80,7 +80,7 @@ class AlignObjects(FlatCAMTool):
|
||||
self.object_combo = FCComboBox()
|
||||
self.object_combo.setModel(self.app.collection)
|
||||
self.object_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.object_combo.setCurrentIndex(1)
|
||||
self.object_combo.set_last = True
|
||||
|
||||
self.object_combo.setToolTip(
|
||||
_("Object to be aligned.")
|
||||
@@ -116,7 +116,7 @@ class AlignObjects(FlatCAMTool):
|
||||
self.aligner_object_combo = FCComboBox()
|
||||
self.aligner_object_combo.setModel(self.app.collection)
|
||||
self.aligner_object_combo.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.aligner_object_combo.setCurrentIndex(1)
|
||||
self.aligner_object_combo.set_last = True
|
||||
|
||||
self.aligner_object_combo.setToolTip(
|
||||
_("Object to be aligned to. Aligner.")
|
||||
|
||||
Reference in New Issue
Block a user