1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-11-03 04:27:16 -05:00
neonmodem/ui/windows/msgerror/view.go
2023-01-05 21:44:34 -05:00

19 lines
325 B
Go

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
}
return m.tk.ErrorDialog(
"Error",
viewportStyle.Render(m.viewport.View()),
)
}