MCPcopy
hub / github.com/yorukot/superfile / updateModelStateAfterMsg

Method updateModelStateAfterMsg

src/internal/model.go:123–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121}
122
123func (m *model) updateModelStateAfterMsg() {
124 m.sidebarModel.UpdateDirectories()
125 m.fileModel.UpdateFilePanelsIfNeeded(false)
126 // TODO: Move to utility
127 if m.focusPanel != metadataFocus {
128 m.fileMetaData.ResetRender()
129 }
130 // TODO: Entirely remove the need of this variable, and handle first loading via Init()
131 // Init() should return a basic model object with all IO waiting via a tea.Cmd
132 if !m.firstLoadingComplete {
133 m.firstLoadingComplete = true
134 }
135}
136
137// Note : Maybe we should not trigger metadata fetch for updates
138// that dont change the currently selected file panel element

Callers 1

UpdateMethod · 0.95

Calls 3

UpdateDirectoriesMethod · 0.80
ResetRenderMethod · 0.80

Tested by

no test coverage detected