Merge pull request #454 from glutanimate/display-addon-name-in-config-window

Display add-on name in add-on configuration window title
This commit is contained in:
Damien Elmes 2020-03-02 16:59:44 +10:00 committed by GitHub
commit 669bb3737f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -1258,6 +1258,12 @@ class ConfigEditor(QDialog):
self.updateText(self.conf)
restoreGeom(self, "addonconf")
restoreSplitter(self.form.splitter, "addonconf")
self.setWindowTitle(
tr(
TR.ADDONS_CONFIG_WINDOW_TITLE,
name=self.mgr.addon_meta(addon).human_name(),
)
)
self.show()
def onRestoreDefaults(self):

View File

@ -4,3 +4,5 @@ addons-failed-to-load =
When loading '{$name}':
{$traceback}
# Shown in the add-on configuration screen (Tools>Add-ons>Config), in the title bar
addons-config-window-title = Configure '{$name}'