Set window title
This commit is contained in:
parent
aec8a6b0b4
commit
f5740572b7
1 changed files with 5 additions and 0 deletions
|
|
@ -50,6 +50,11 @@ type Handler struct {
|
|||
|
||||
func (h *Handler) draw_screen() (err error) {
|
||||
matches, in_progress := h.get_results()
|
||||
if len(matches) > 0 {
|
||||
h.lp.SetWindowTitle(matches[0].text)
|
||||
} else {
|
||||
h.lp.SetWindowTitle("Select a file") // TODO: make this conditional on mode
|
||||
}
|
||||
h.lp.StartAtomicUpdate()
|
||||
defer h.lp.EndAtomicUpdate()
|
||||
h.lp.ClearScreen()
|
||||
|
|
|
|||
Loading…
Reference in a new issue