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

Some minor cleanup

This commit is contained in:
Chris Cummer
2018-04-22 23:39:33 -07:00
parent e1950bf756
commit d7bc26684a
5 changed files with 35 additions and 36 deletions

View File

@@ -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"

View File

@@ -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)
}