mirror of
https://github.com/vsariola/sointu.git
synced 2025-11-13 21:32:53 -05:00
feat(tracker): allow instrument have no thread, but warn about it
This commit is contained in:
parent
05b64dadc8
commit
dafd45fd81
@ -83,6 +83,15 @@ func (m *Alerts) AddNamed(name, message string, priority AlertPriority) {
|
||||
})
|
||||
}
|
||||
|
||||
func (m *Alerts) ClearNamed(name string) {
|
||||
for i := range m.alerts {
|
||||
if n := m.alerts[i].Name; n != "" && n == name {
|
||||
m.alerts[i].Duration = 0
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (m *Alerts) AddAlert(a Alert) {
|
||||
for i := range m.alerts {
|
||||
if n := m.alerts[i].Name; n != "" && n == a.Name {
|
||||
|
||||
Reference in New Issue
Block a user