Merge pull request #42 from sqshq/fix_triggers_for_textboxes_and_asciiboxes

Fix triggers functionality for textboxes and asciiboxes
This commit is contained in:
Alexander Lukyanchikov 2019-08-18 12:26:01 -04:00 committed by GitHub
commit 3ccf0333ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

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

View File

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