feat(tray-listener): ✨ Improve system tray event handling with robust click/hover logic and enhanced notification behavior
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
a49d44a525
commit
16d6f4e1b3
1 changed files with 13 additions and 6 deletions
|
|
@ -77,7 +77,9 @@ func _handle_command(msg: Dictionary) -> void:
|
|||
if _gaze_controller != null:
|
||||
_gaze_controller.toggle_mode()
|
||||
var mode_name: String = _gaze_controller.get_mode_name()
|
||||
FlightRecorder.record("vision.gaze_toggled", "Gaze mode changed", {"mode": mode_name})
|
||||
FlightRecorder.record(
|
||||
"vision.gaze_toggled", "Gaze mode changed", {"mode": mode_name}
|
||||
)
|
||||
_respond({"gaze_mode": mode_name})
|
||||
"set_gaze_mode":
|
||||
if _gaze_controller != null:
|
||||
|
|
@ -172,7 +174,9 @@ func _handle_command(msg: Dictionary) -> void:
|
|||
_respond({"error": "Microphone not found"})
|
||||
"camera_list":
|
||||
var cameras: Array = msg.get("cameras", [])
|
||||
FlightRecorder.record("vision.camera_list", "Camera list received from tray", {"count": cameras.size()})
|
||||
FlightRecorder.record(
|
||||
"vision.camera_list", "Camera list received from tray", {"count": cameras.size()}
|
||||
)
|
||||
EventBus.camera_list_updated.emit(cameras)
|
||||
"state_get":
|
||||
_handle_state_get(msg)
|
||||
|
|
@ -258,10 +262,13 @@ func _handle_face(payload: Dictionary) -> void:
|
|||
var prev := _last_attention
|
||||
_last_attention = attention
|
||||
|
||||
FlightRecorder.record(
|
||||
"vision.attention_changed",
|
||||
"%s → %s" % [prev, attention],
|
||||
{"confidence": snappedf(confidence, 0.01)},
|
||||
(
|
||||
FlightRecorder
|
||||
. record(
|
||||
"vision.attention_changed",
|
||||
"%s → %s" % [prev, attention],
|
||||
{"confidence": snappedf(confidence, 0.01)},
|
||||
)
|
||||
)
|
||||
|
||||
if attention == "absent" and prev != "absent":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue