- changed some strings; updated the translation strings with the new strings (they need to be translated)
- modified all the plugins (formerly named Tools) to auto select in the plugin the selected object from Project Menu - small changes in Tools Database
This commit is contained in:
@@ -177,6 +177,12 @@ class ToolCopperThieving(AppTool):
|
||||
self.robber_line = None
|
||||
self.thief_solid_geometry = []
|
||||
|
||||
# SELECT THE CURRENT OBJECT
|
||||
obj = self.app.collection.get_active()
|
||||
if obj and obj.kind == 'gerber':
|
||||
obj_name = obj.options['name']
|
||||
self.ui.grb_object_combo.set_value(obj_name)
|
||||
|
||||
def on_ref_combo_type_change(self):
|
||||
obj_type = self.ui.ref_combo_type.currentIndex()
|
||||
self.ui.ref_combo.setRootModelIndex(self.app.collection.index(obj_type, 0, QtCore.QModelIndex()))
|
||||
|
||||
Reference in New Issue
Block a user