8000 refactor(main): create AppPlugin for window creation by axel7083 · Pull Request #13084 · podman-desktop/podman-desktop · GitHub
[go: up one dir, main page]

Skip to content

Conversation

axel7083
Copy link
Contributor
@axel7083 axel7083 commented Jul 7, 2025

What does this PR do?

When the electron app is ready we call createWindow, and register an activate listener for MacOS. Following the work on #12905, creating a WindowCreation AppPlugin to handle this logic in a separate file.

I added tests for completeness.

What issues does this PR fix or reference?

Fixes #13082

How to test this PR?

  • Tests are covering the bug fix or the new feature

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
@axel7083 axel7083 requested review from benoitf and a team as code owners July 7, 2025 15:23
@axel7083 axel7083 requested review from dgolovin and gastoner and removed request for a team July 7, 2025 15:23

This comment was marked as resolved.

sourcery-ai[bot]

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

Copy link
codecov bot commented Jul 7, 2025

Codecov Report

Attention: Patch coverage is 90.32258% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ackages/main/src/plugin/app-ready/window-plugin.ts 89.28% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor
@gastoner gastoner left a comment

Choose a reason for hiding this comment

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

Codewise LGTM

@axel7083 axel7083 merged commit 79c74ee into podman-desktop:main Jul 8, 2025
21 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.21.0 milestone Jul 8, 2025
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.

refactor(main): moving createNewWindow logic to Main class
3 participants
0