Run the plugin's show_prefs callbacks before the preferences dialog's show()
This commit is contained in:
parent
9c641bb6d0
commit
3d4e05b5e0
@ -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…
x
Reference in New Issue
Block a user