fix: Update Call Detail view on new packets for real-time monitoring
This commit is contained in:
@@ -320,13 +320,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
|
|
||||||
// If we are in Call Detail view, we might need to update the viewport content dynamically!
|
// If we are in Call Detail view, we might need to update the viewport content dynamically!
|
||||||
if m.subView == SubViewCallDetail {
|
if m.subView == SubViewCallDetail {
|
||||||
// Re-render subview content effectively updates the strings, but
|
m.updateCallDetailView()
|
||||||
// we need to set the content on viewport again if it changed.
|
|
||||||
// This is handled in View() normally, but viewport needs SetContent.
|
|
||||||
// Let's force a viewport update by triggering a dummy message or just re-setting it.
|
|
||||||
// Actually, View() calls renderCallDetail which calls SetContent.
|
|
||||||
// But View() is only called if Update returns a modified model.
|
|
||||||
// We modified the store, so that counts.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user