1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-12-04 14:46:37 -05:00
neonmodem/ui/windows/msgerror/view.go

19 lines
325 B
Go
Raw Normal View History

2023-01-03 16:58:49 -05:00
package msgerror
func (m Model) View() string {
return m.tk.View(&m, true)
}
func buildView(mi interface{}, cached bool) string {
var m *Model = mi.(*Model)
if vcache := m.tk.DefaultCaching(cached); vcache != "" {
return vcache
2023-01-03 16:58:49 -05:00
}
return m.tk.ErrorDialog(
"Error",
2023-01-03 16:58:49 -05:00
viewportStyle.Render(m.viewport.View()),
)
}