mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
use thread safe map
This commit is contained in:
parent
e76fa5a6cb
commit
ed98b60078
4 changed files with 162 additions and 8 deletions
|
@ -185,7 +185,7 @@ type GuiRepoState struct {
|
|||
// WindowViewNameMap is a mapping of windows to the current view of that window.
|
||||
// Some views move between windows for example the commitFiles view and when cycling through
|
||||
// side windows we need to know which view to give focus to for a given window
|
||||
WindowViewNameMap map[string]string
|
||||
WindowViewNameMap *utils.ThreadSafeMap[string, string]
|
||||
|
||||
// tells us whether we've set up our views for the current repo. We'll need to
|
||||
// do this whenever we switch back and forth between repos to get the views
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue