mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-28 20:25:10 +00:00
Show plugin information in the preferences page
This commit is contained in:
parent
fb3e51d3e9
commit
1725ab7569
File diff suppressed because it is too large
Load Diff
@ -803,6 +803,14 @@ class Preferences(component.Component):
|
||||
|
||||
def on_plugin_selection_changed(self, treeselection):
|
||||
log.debug("on_plugin_selection_changed")
|
||||
(model, itr) = treeselection.get_selected()
|
||||
name = model[itr][0]
|
||||
plugin_info = component.get("PluginManager").get_plugin_info(name)
|
||||
self.glade.get_widget("label_plugin_author").set_text(plugin_info["Author"])
|
||||
self.glade.get_widget("label_plugin_version").set_text(plugin_info["Version"])
|
||||
self.glade.get_widget("label_plugin_email").set_text(plugin_info["Author-email"])
|
||||
self.glade.get_widget("label_plugin_homepage").set_text(plugin_info["Home-page"])
|
||||
self.glade.get_widget("label_plugin_details").set_text(plugin_info["Description"])
|
||||
|
||||
def _on_button_plugin_install_clicked(self, widget):
|
||||
log.debug("_on_button_plugin_install_clicked")
|
||||
@ -854,4 +862,3 @@ class Preferences(component.Component):
|
||||
component.get("PluginManager").scan_for_plugins()
|
||||
client.rescan_plugins()
|
||||
self.show()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user