- 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:
Marius Stanciu
2021-03-18 03:45:56 +02:00
committed by Marius
parent aa69e87cb6
commit 0177a64fe4
48 changed files with 31977 additions and 31437 deletions

View File

@@ -96,6 +96,12 @@ class ToolInvertGerber(AppTool):
self.ui.margin_entry.set_value(float(self.app.defaults["tools_invert_margin"]))
self.ui.join_radio.set_value(self.app.defaults["tools_invert_join_style"])
# SELECT THE CURRENT OBJECT
obj = self.app.collection.get_active()
if obj and obj.kind == 'gerber':
obj_name = obj.options['name']
self.ui.gerber_combo.set_value(obj_name)
def on_grb_invert(self):
margin = self.ui.margin_entry.get_value()
if round(margin, self.decimals) == 0.0: