mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
19 lines
272 B
Go
19 lines
272 B
Go
package todo
|
|
|
|
type Item struct {
|
|
Checked bool
|
|
Text string
|
|
}
|
|
|
|
func (item *Item) CheckMark() string {
|
|
if item.Checked {
|
|
return Config.UString("wtf.mods.todo.checkedIcon", "x")
|
|
} else {
|
|
return " "
|
|
}
|
|
}
|
|
|
|
func (item *Item) Toggle() {
|
|
item.Checked = !item.Checked
|
|
}
|