feat(v2): add realtime command and release tooling
This commit is contained in:
@@ -183,6 +183,17 @@ func (window *Window) PresentAlert(record alert.Record) {
|
||||
})
|
||||
}
|
||||
|
||||
// ReportIssue communicates a recoverable startup/worker issue without using
|
||||
// critical-red fall language or exposing configuration values.
|
||||
func (window *Window) ReportIssue(message string) {
|
||||
window.main.Synchronize(func() {
|
||||
window.model.ConnectionText = "视频流:" + message
|
||||
window.model.Critical = false
|
||||
_ = window.connectionLabel.SetText(window.model.ConnectionText)
|
||||
_ = window.stateLabel.SetText("检测状态:正常")
|
||||
})
|
||||
}
|
||||
|
||||
func highestState(result fall.FrameResult) fall.State {
|
||||
state := fall.Normal
|
||||
for _, person := range result.People {
|
||||
|
||||
Reference in New Issue
Block a user