1
0
mirror of https://github.com/taigrr/wtf synced 2026-03-30 15:05:18 -07:00
Files
wtf/todo/item.go

23 lines
326 B
Go

package todo
import (
"github.com/senorprogrammer/wtf/wtf"
)
type Item struct {
Checked bool
Text string
}
func (item *Item) CheckMark() string {
if item.Checked {
return wtf.Config.UString("wtf.mods.todo.checkedIcon", "x")
} else {
return " "
}
}
func (item *Item) Toggle() {
item.Checked = !item.Checked
}