mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
When the config file changes and lazygit regains focus it reloads the config, but the side panel window assignments, default views, tab strips, and z-order were only ever set up on repo entry, so a changed sidePanels wouldn't take effect until restart. Re-apply it from the reload path: reassign windows and default views and restore each panel's default tab. The focused panel needs care: resetting it to its default tab would leave the focused tab hidden behind that default tab, so the panel looks unfocused even though its tab is selected. Re-focus the current context so its tab stays shown and highlighted; only when the new config hides the focused panel entirely do we move focus to the default side panel. Tab strips are already refreshed via configureViewProperties. |
||
|---|---|---|
| .. | ||
| accordion.go | ||
| disable_switch_tab_with_panel_jump_keys.go | ||
| empty_menu.go | ||
| hide_side_panel.go | ||
| keybinding_suggestions_dont_crash_on_disabled_bindings.go | ||
| keybinding_suggestions_when_switching_repos.go | ||
| mode_specific_keybinding_suggestions.go | ||
| open_link_failure.go | ||
| promote_tab_to_side_panel.go | ||
| range_select.go | ||
| reload_side_panels.go | ||
| reorder_side_panels.go | ||
| switch_tab_from_menu.go | ||
| switch_tab_with_panel_jump_keys.go | ||