Support to request a content-only UI refresh

This skips the whole-UI layout calculations, and lets tcell's dirty cell
handling redraw only changed cells.
This commit is contained in:
Antoine Gaudreau Simard
2026-05-06 18:53:32 +02:00
committed by Stefan Haller
parent 79727f1780
commit 9c3e7dac88
5 changed files with 261 additions and 9 deletions
+4
View File
@@ -120,6 +120,10 @@ func (self *guiCommon) OnUIThread(f func() error) {
self.gui.onUIThread(f)
}
func (self *guiCommon) OnUIThreadContentOnly(f func() error) {
self.gui.onUIThreadContentOnly(f)
}
func (self *guiCommon) OnWorker(f func(gocui.Task) error) {
self.gui.onWorker(f)
}