SetTitle sets the loadpoint title
(title string)
| 112 | |
| 113 | // SetTitle sets the loadpoint title |
| 114 | func (lp *Loadpoint) SetTitle(title string) { |
| 115 | lp.Lock() |
| 116 | defer lp.Unlock() |
| 117 | |
| 118 | lp.log.DEBUG.Println("set title:", title) |
| 119 | |
| 120 | if title != lp.title { |
| 121 | lp.setTitle(title) |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | // setTitle sets the loadpoint title (no mutex) |
| 126 | func (lp *Loadpoint) setTitle(title string) { |