Skip to content

Commit

Permalink
Merge pull request #42 from sqshq/fix_triggers_for_textboxes_and_asci…
Browse files Browse the repository at this point in the history
…iboxes

Fix triggers functionality for textboxes and asciiboxes
  • Loading branch information
sqshq authored Aug 18, 2019
2 parents 5eb260b + 63bc5a0 commit 3ccf033
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions component/nag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 3ccf033

Please sign in to comment.