Display add-on name in add-on configuration window title

This commit is contained in:
Glutanimate 2020-02-29 20:15:23 +01:00
parent 2db7591b6d
commit d22ad11224
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}'