Skip to content

fix(macOS): present tray popup before app activation - #10582

Merged
Rello merged 2 commits into
masterfrom
bugfix/macOSTrayDelay
Aug 12, 2026
Merged

fix(macOS): present tray popup before app activation#10582
Rello merged 2 commits into
masterfrom
bugfix/macOSTrayDelay

Conversation

@Rello

@Rello Rello commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Order the native tray panel before activating the app so WindowServer can accept activation after an app-icon launch. Only mark the tray open when the panel is visible.

Assisted-by: Codex:GPT-5

Order the native tray panel before activating the app so WindowServer can accept activation after an app-icon launch. Only mark the tray open when the panel is visible.

Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>
@camilasan

Copy link
Copy Markdown
Member

it works for me鈩笍

@Rello Rello changed the title draft fix(macOS): present tray popup before app activation fix(macOS): present tray popup before app activation Aug 12, 2026
@Rello
Rello marked this pull request as ready for review August 12, 2026 13:41

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 26dddc85b5

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

};

private slots:
void ordersPopupBeforeRequestingApplicationActivation()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Cover the conditional popup-open behavior

Add regression coverage for both visibility outcomes introduced by this change. This sole test replaces the three presentation operations with vector pushes and only verifies their order; it never exercises the new showMacOSTrayPopup() result or verifies that Systray::showTrayPopup() sets isOpen and fetches activity only when the native panel is visible. A regression that restores the stale-open state after a failed macOS presentation would therefore pass this test.

AGENTS.md reference: AGENTS.md:L207-L209

Useful? React with 馃憤聽/ 馃憥.

@Rello

Rello commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable-34.0

@Rello Rello self-assigned this Aug 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-10582.zip

Digest: sha256:d9f806c3515a438e7ce12b99586918809e3de0bb64e413732afa679312fbd167

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarqubecloud

Copy link
Copy Markdown

@Rello
Rello merged commit fd0d8a0 into master Aug 12, 2026
23 checks passed
@Rello
Rello deleted the bugfix/macOSTrayDelay branch August 12, 2026 20:28
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.

2 participants