feat(ctx): Also set show_windows for Text Viewer on Slices button
This commit is contained in:
@@ -3161,6 +3161,7 @@ def render_context_files_table(app: App) -> None:
|
||||
app.text_viewer_content = f"Error reading file: {e}"
|
||||
app.text_viewer_type = 'cpp' if f_path.endswith(('.cpp', '.hpp', '.h')) else 'python' if f_path.endswith('.py') else 'text'
|
||||
app.show_text_viewer = True
|
||||
app.show_windows["Text Viewer"] = True
|
||||
|
||||
imgui.table_set_column_index(1)
|
||||
if not hasattr(f_item, "view_mode"): f_item.view_mode = "summary"
|
||||
|
||||
Reference in New Issue
Block a user