mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-16 15:28:46 +00:00
Run the plugin's show_prefs callbacks before the preferences dialog's show()
This commit is contained in:
parent
9c641bb6d0
commit
3d4e05b5e0
1 changed files with 2 additions and 1 deletions
|
@ -174,6 +174,8 @@ class Preferences(component.Component):
|
||||||
self.treeview.get_selection().select_path(index)
|
self.treeview.get_selection().select_path(index)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
component.get("PluginManager").run_on_show_prefs()
|
||||||
|
|
||||||
# Update the preferences dialog to reflect current config settings
|
# Update the preferences dialog to reflect current config settings
|
||||||
self.core_config = {}
|
self.core_config = {}
|
||||||
if client.connected():
|
if client.connected():
|
||||||
|
@ -510,7 +512,6 @@ class Preferences(component.Component):
|
||||||
self.plugin_liststore.set_value(row, 0, plugin)
|
self.plugin_liststore.set_value(row, 0, plugin)
|
||||||
self.plugin_liststore.set_value(row, 1, enabled)
|
self.plugin_liststore.set_value(row, 1, enabled)
|
||||||
|
|
||||||
component.get("PluginManager").run_on_show_prefs()
|
|
||||||
# Now show the dialog
|
# Now show the dialog
|
||||||
self.pref_dialog.show()
|
self.pref_dialog.show()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue