()
| 121 | } |
| 122 | |
| 123 | func (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 |
no test coverage detected