File tree Expand file tree Collapse file tree 3 files changed +12
-23
lines changed
Expand file tree Collapse file tree 3 files changed +12
-23
lines changed Original file line number Diff line number Diff line change @@ -681,17 +681,6 @@ func NewGui(
681681 // real value after loading the user config:
682682 ShowExtrasWindow : true ,
683683
684- Mutexes : types.Mutexes {
685- RefreshingFilesMutex : & deadlock.Mutex {},
686- RefreshingBranchesMutex : & deadlock.Mutex {},
687- RefreshingStatusMutex : & deadlock.Mutex {},
688- LocalCommitsMutex : & deadlock.Mutex {},
689- SubCommitsMutex : & deadlock.Mutex {},
690- AuthorsMutex : & deadlock.Mutex {},
691- SubprocessMutex : & deadlock.Mutex {},
692- PopupMutex : & deadlock.Mutex {},
693- PtyMutex : & deadlock.Mutex {},
694- },
695684 InitialDir : initialDir ,
696685 afterLayoutFuncs : make (chan func () error , 1000 ),
697686
Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ func (self *guiCommon) Model() *types.Model {
100100 return self .gui .State .Model
101101}
102102
103- func (self * guiCommon ) Mutexes () types.Mutexes {
104- return self .gui .Mutexes
103+ func (self * guiCommon ) Mutexes () * types.Mutexes {
104+ return & self .gui .Mutexes
105105}
106106
107107func (self * guiCommon ) GocuiGui () * gocui.Gui {
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ type IGuiCommon interface {
9494
9595 Modes () * Modes
9696
97- Mutexes () Mutexes
97+ Mutexes () * Mutexes
9898
9999 State () IStateAccessor
100100
@@ -316,15 +316,15 @@ type Model struct {
316316// if you add a new mutex here be sure to instantiate it. We're using pointers to
317317// mutexes so that we can pass the mutexes to controllers.
318318type Mutexes struct {
319- RefreshingFilesMutex * deadlock.Mutex
320- RefreshingBranchesMutex * deadlock.Mutex
321- RefreshingStatusMutex * deadlock.Mutex
322- LocalCommitsMutex * deadlock.Mutex
323- SubCommitsMutex * deadlock.Mutex
324- AuthorsMutex * deadlock.Mutex
325- SubprocessMutex * deadlock.Mutex
326- PopupMutex * deadlock.Mutex
327- PtyMutex * deadlock.Mutex
319+ RefreshingFilesMutex deadlock.Mutex
320+ RefreshingBranchesMutex deadlock.Mutex
321+ RefreshingStatusMutex deadlock.Mutex
322+ LocalCommitsMutex deadlock.Mutex
323+ SubCommitsMutex deadlock.Mutex
324+ AuthorsMutex deadlock.Mutex
325+ SubprocessMutex deadlock.Mutex
326+ PopupMutex deadlock.Mutex
327+ PtyMutex deadlock.Mutex
328328}
329329
330330// A long-running operation associated with an item. For example, we'll show
You can’t perform that action at this time.
0 commit comments