mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Some minor cleanup
This commit is contained in:
@@ -7,9 +7,6 @@ import (
|
||||
func (widget *Widget) display() {
|
||||
widget.View.Clear()
|
||||
|
||||
title := fmt.Sprintf(" 📝 %s ", widget.FilePath)
|
||||
widget.View.SetTitle(title)
|
||||
|
||||
str := ""
|
||||
for idx, item := range widget.list.Items {
|
||||
foreColor, backColor := "white", "black"
|
||||
|
||||
@@ -117,7 +117,7 @@ func (widget *Widget) load() {
|
||||
confDir, _ := wtf.ConfigDir()
|
||||
filePath := fmt.Sprintf("%s/%s", confDir, widget.FilePath)
|
||||
|
||||
fileData, _ := wtf.ReadYamlFile(filePath)
|
||||
fileData, _ := wtf.ReadFileBytes(filePath)
|
||||
yaml.Unmarshal(fileData, &widget.list)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user