feat(v2): add realtime command and release tooling

This commit is contained in:
ila
2026-07-22 21:28:57 +08:00
parent a98005e631
commit 536396f373
9 changed files with 367 additions and 10 deletions
+11
View File
@@ -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 {