Desktop Tray and Window Behavior Settings #513

Closed
opened 2026-02-28 16:54:21 +00:00 by johnny9 · 2 comments
johnny9 commented 2026-02-28 16:54:21 +00:00 (Migrated from github.com)

Summary

Add desktop settings for tray icon behavior and minimize/close window handling parity.

Complexity

  • L

Dependencies

  • 01
  • 02

Global Constraints

  • All implementation lives under gui-qml/.
  • No GUI runtime dependency on bitcoin/src/qt components. Reused logic must be moved/ported into gui-qml/.
  • Do not change interfaces::Wallet or interfaces::Node in this version.
  • Issue completion must satisfy DefinitionOfDone.md.

Scope

  • Implement settings: show tray icon, minimize-to-tray, and close-to-tray/window behavior.
  • Integrate behavior with application lifecycle/shutdown semantics.
  • Platform guard non-desktop targets.

Acceptance Criteria (DoD-Aligned)

  1. Tray and minimize behavior matches configured settings on desktop.
  2. Close action does not accidentally shutdown node when close-to-tray is enabled.
  3. Behavior is persisted and restored on restart.

Required Tests

  • C++ unit tests: Unit tests for tray/window behavior state machine.
  • QML QTest: QTests for settings UI and state-dependent labels/warnings.
  • Python E2E (qml/test/testbridge.h): Desktop E2E flow covering minimize, close, reopen via tray, and shutdown correctness.

Implementation Notes

  • Implement in gui-qml backend wrappers; do not use bitcoingui widgets dependencies.
## Summary Add desktop settings for tray icon behavior and minimize/close window handling parity. ## Complexity - `L` ## Dependencies - `01` - `02` ## Global Constraints - All implementation lives under `gui-qml/`. - No GUI runtime dependency on `bitcoin/src/qt` components. Reused logic must be moved/ported into `gui-qml/`. - Do not change `interfaces::Wallet` or `interfaces::Node` in this version. - Issue completion must satisfy `DefinitionOfDone.md`. ## Scope - Implement settings: show tray icon, minimize-to-tray, and close-to-tray/window behavior. - Integrate behavior with application lifecycle/shutdown semantics. - Platform guard non-desktop targets. ## Acceptance Criteria (DoD-Aligned) 1. Tray and minimize behavior matches configured settings on desktop. 2. Close action does not accidentally shutdown node when close-to-tray is enabled. 3. Behavior is persisted and restored on restart. ## Required Tests - C++ unit tests: Unit tests for tray/window behavior state machine. - QML QTest: QTests for settings UI and state-dependent labels/warnings. - Python E2E (`qml/test/testbridge.h`): Desktop E2E flow covering minimize, close, reopen via tray, and shutdown correctness. ## Implementation Notes - Implement in gui-qml backend wrappers; do not use `bitcoingui` widgets dependencies.
GBKS commented 2026-03-23 10:58:22 +00:00 (Migrated from github.com)

Are there any specific icons that need to be created for this functionality? I'd assume that different operating systems require different images sizes/formats/treatments.

Are there any specific icons that need to be created for this functionality? I'd assume that different operating systems require different images sizes/formats/treatments.
johnny9 commented 2026-05-12 15:53:43 +00:00 (Migrated from github.com)

I think we can reuse the current bitcoin icon for this and the menu can remain text only for now

I think we can reuse the current bitcoin icon for this and the menu can remain text only for now
Sign in to join this conversation.
No description provided.