mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Update title handling so that config based title can be used
There is already default handling of title. Remove instances where people are unknowingly overriding it For instances where we want to set special things, make sure to use CommonSettings.Title, so people can still override
This commit is contained in:
@@ -26,7 +26,7 @@ func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) *
|
||||
HelpfulWidget: wtf.NewHelpfulWidget(app, pages, HelpText),
|
||||
TextWidget: wtf.NewTextWidget(app, settings.common, false),
|
||||
|
||||
app: app,
|
||||
app: app,
|
||||
settings: settings,
|
||||
}
|
||||
|
||||
@@ -56,7 +56,6 @@ func (widget *Widget) display() {
|
||||
widget.View.SetWrap(false)
|
||||
|
||||
widget.View.Clear()
|
||||
widget.View.SetTitle(widget.Name)
|
||||
widget.View.SetText("Some Text")
|
||||
widget.View.Highlight(strconv.Itoa(widget.selected)).ScrollToHighlight()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user