Skip to content

Commit

Permalink
updated add_context_pane settings use (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz committed Jan 18, 2022
1 parent 599db81 commit 67fccb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -10570,8 +10570,7 @@ def add_context_pane(self, pane_name: str, display_pane_function: Callable, pane

# assure users can toggle the new context
corrected_settings_name = pane_name.replace(" ", "_")
layout_settings = context.get_setting("layout")
context.update_setting("layout", f"{layout_settings} {corrected_settings_name}")
gef.config["context.layout"] += f" {corrected_settings_name}"

# overload the printing of pane title
context.layout_mapping[corrected_settings_name] = (display_pane_function, pane_title_function)
Expand Down

0 comments on commit 67fccb5

Please sign in to comment.