- 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

@@ -158,6 +158,12 @@ class QRCode(AppTool):
self.ui.back_color_button.setStyleSheet("background-color:%s" %
str(self.app.defaults['tools_qrcode_back_color'])[:7])
# 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)
# Show/Hide Advanced Options
app_mode = self.app.defaults["global_app_level"]
self.change_level(app_mode)
@@ -728,12 +734,9 @@ class QRcodeUI:
self.level = QtWidgets.QToolButton()
self.level.setToolTip(
_(
"In BEGINNER mode many parameters\n"
"are hidden from the user in this mode.\n"
"ADVANCED mode will make available all parameters.\n\n"
"To change the application LEVEL, go to:\n"
"Edit -> Preferences -> General and check:\n"
"'APP. LEVEL' radio button."
"Beginner Mode - many parameters are hidden.\n"
"Advanced Mode - full control.\n"
"Permanent change is done in 'Preferences' menu."
)
)
self.level.setCheckable(True)