Fix triggers functionality for textboxes and asciiboxes

This commit is contained in:
sqshq 2019-08-18 12:18:30 -04:00
parent 5eb260b432
commit 63bc5a0a3c
2 changed files with 4 additions and 4 deletions

View File

@ -47,8 +47,8 @@ func (n *NagWindow) Draw(buffer *ui.Buffer) {
buffer)
}
buffer.SetString(string(buttonOk), ui.NewStyle(n.palette.ReverseColor, n.palette.BaseColor),
util.GetMiddlePoint(n.Block.Rectangle, string(buttonOk), 4))
buffer.SetString(buttonOk, ui.NewStyle(n.palette.ReverseColor, n.palette.BaseColor),
util.GetMiddlePoint(n.Block.Rectangle, buttonOk, 4))
n.Block.Draw(buffer)
}

View File

@ -111,7 +111,7 @@ func (c *Config) setDefaultValues() {
box.RateMs = &r
}
if box.Label == nil {
label := string(i)
label := box.Title
box.Label = &label
}
if box.Font == nil {
@ -135,7 +135,7 @@ func (c *Config) setDefaultValues() {
box.RateMs = &r
}
if box.Label == nil {
label := string(i)
label := box.Title
box.Label = &label
}
if box.Border == nil {