1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Icon for textfile title

This commit is contained in:
Chris Cummer 2018-04-18 15:21:36 -07:00
parent a9309ccec5
commit 1c72c71e81

View File

@ -21,7 +21,7 @@ type Widget struct {
func NewWidget() *Widget { func NewWidget() *Widget {
widget := Widget{ widget := Widget{
TextWidget: wtf.NewTextWidget("TextFile", "textfile"), TextWidget: wtf.NewTextWidget(" Text File ", "textfile"),
FilePath: Config.UString("wtf.mods.textfile.filepath"), FilePath: Config.UString("wtf.mods.textfile.filepath"),
} }
@ -37,7 +37,7 @@ func (widget *Widget) Refresh() {
return return
} }
widget.View.SetTitle(fmt.Sprintf(" %s ", widget.FilePath)) widget.View.SetTitle(fmt.Sprintf(" 📄 %s ", widget.FilePath))
widget.RefreshedAt = time.Now() widget.RefreshedAt = time.Now()
widget.View.Clear() widget.View.Clear()