Add a callback on enable_vertical_tab_list change
This commit is contained in:
parent
71f3848706
commit
cf04e65983
1 changed files with 8 additions and 0 deletions
|
@ -313,6 +313,8 @@ class Core(object):
|
|||
self.on_theme_config_change)
|
||||
self.add_configuration_handler("password",
|
||||
self.on_password_change)
|
||||
self.add_configuration_handler("enable_vertical_tab_list",
|
||||
self.on_vertical_tab_list_config_change)
|
||||
|
||||
self.add_configuration_handler("", self.on_any_config_change)
|
||||
|
||||
|
@ -375,6 +377,12 @@ class Core(object):
|
|||
path = os.path.expanduser(value)
|
||||
self.plugin_manager.on_plugins_dir_change(path)
|
||||
|
||||
def on_vertical_tab_list_config_change(self, option, value):
|
||||
"""
|
||||
Called when the enable_vertical_tab_list option is changed
|
||||
"""
|
||||
self.call_for_resize()
|
||||
|
||||
def on_plugins_conf_dir_config_change(self, option, value):
|
||||
"""
|
||||
Called when the plugins_conf_dir option is changed
|
||||
|
|
Loading…
Reference in a new issue