Skip to content

linux: open tray app on activation#665

Open
ousamabenyounes wants to merge 1 commit into
librepods-org:linux/rustfrom
ousamabenyounes:fix/issue-636-tray-activation
Open

linux: open tray app on activation#665
ousamabenyounes wants to merge 1 commit into
librepods-org:linux/rustfrom
ousamabenyounes:fix/issue-636-tray-activation

Conversation

@ousamabenyounes

Copy link
Copy Markdown

Summary

  • Open the Linux Rust app window from the tray icon activation callback.
  • Reuse the existing Open Window menu behavior for left-click activation.
  • Add a focused unit test for the tray activation message.

Issues

Fix #636

Test verification (RED -> GREEN)

RED before implementation:

running 1 test
test ui::tray::tests::tray_activation_opens_window ... FAILED
assertion failed: matches!(ui_rx.try_recv(), Ok(BluetoothUIMessage::OpenWindow))

GREEN with fix:

running 1 test
test ui::tray::tests::tray_activation_opens_window ... ok
test result: ok. 1 passed; 0 failed

Revert proof:

running 1 test
test ui::tray::tests::tray_activation_opens_window ... FAILED
assertion failed: matches!(ui_rx.try_recv(), Ok(BluetoothUIMessage::OpenWindow))

Final checks:

cargo test ui::tray::tests::tray_activation_opens_window -- --exact
test result: ok. 1 passed; 0 failed

cargo test --no-run
Finished test profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant