Skip to content

fix: hide system tray when no items present#70

Merged
Axenide merged 1 commit intoAxenide:mainfrom
Corrub:fix/systray-empty-visibility
Feb 14, 2026
Merged

fix: hide system tray when no items present#70
Axenide merged 1 commit intoAxenide:mainfrom
Corrub:fix/systray-empty-visibility

Conversation

@Corrub
Copy link
Copy Markdown
Contributor

@Corrub Corrub commented Feb 13, 2026

Fixes #4

  • Added hasItems property using Repeater.count for reliable model counting
  • Set visible binding to hasItems
  • Set Layout.preferredWidth/implicitWidth/implicitHeight to 0 when empty
  • Tray now properly hides when no apps are in the system tray
Screenshot_2026-02-13-09-08-53 Screenshot_2026-02-13-09-09-08

Copilot AI review requested due to automatic review settings February 13, 2026 05:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes a bug where the system tray was not properly hidden when no applications were present in the tray. The fix introduces a hasItems property that checks the Repeater count to determine visibility, and sets the component dimensions to 0 when empty.

Changes:

  • Added hasItems property using rowRepeater.count > 0 to track when system tray items are present
  • Set visible binding to hasItems to hide the component when empty
  • Conditionally set Layout.preferredWidth, implicitWidth, and implicitHeight to 0 when hasItems is false

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

spacing: 8

Repeater {
id: columnRepeater
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The columnRepeater ID is added but never used. Since both rowRepeater and columnRepeater share the same model (SystemTray.items), they will always have the same count. The current implementation only checks rowRepeater.count on line 29, making this ID unnecessary. Consider either removing this ID or updating line 29 to check the appropriate repeater based on orientation (e.g., (vertical ? columnRepeater.count : rowRepeater.count) > 0) for clarity.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Fixes Axenide#4

- Added hasItems property using Repeater.count for reliable model counting
- Set visible binding to hasItems
- Set Layout.preferredWidth/implicitWidth/implicitHeight to 0 when empty
- Tray now properly hides when no apps are in the system tray
@Corrub Corrub force-pushed the fix/systray-empty-visibility branch from de2a7aa to f8b316f Compare February 13, 2026 06:56
@Axenide Axenide merged commit 31e5a64 into Axenide:main Feb 14, 2026
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.

bug: System Tray is not properly hidden when no apps in tray

3 participants