Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated add_context_pane settings use #796

Merged
merged 2 commits into from
Jan 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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