diff --git a/cfg/common_settings.go b/cfg/common_settings.go index 004e7b81..8d7a8c39 100644 --- a/cfg/common_settings.go +++ b/cfg/common_settings.go @@ -84,7 +84,7 @@ func NewCommonSettingsFromYAML(name, configKey string, ymlConfig *config.Config) Enabled: ymlConfig.UBool(modulePath+".enabled", false), FocusChar: ymlConfig.UInt(modulePath+".focusChar", -1), RefreshInterval: ymlConfig.UInt(modulePath+".refreshInterval", 300), - Title: ymlConfig.UString(modulePath+".title", ""), + Title: ymlConfig.UString(modulePath+".title", name), } return &common diff --git a/wtf/text_widget.go b/wtf/text_widget.go index 17ca9277..845c4645 100644 --- a/wtf/text_widget.go +++ b/wtf/text_widget.go @@ -135,7 +135,7 @@ func (widget *TextWidget) addView(app *tview.Application, configKey string) { view.SetBorder(true) view.SetDynamicColors(true) - view.SetTitle(widget.ContextualTitle(widget.name)) + view.SetTitle(widget.ContextualTitle(widget.CommonSettings.Title)) view.SetWrap(false) view.SetChangedFunc(func() {