Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] "activate" event #9063

Closed
martpie opened this issue Mar 4, 2024 · 1 comment
Closed

[feat] "activate" event #9063

martpie opened this issue Mar 4, 2024 · 1 comment

Comments

@martpie
Copy link

martpie commented Mar 4, 2024

Describe the problem

Electron supports an activate event (macOS-specific), triggered for example when calling the app from the doc or spotlight.

Emitted when the application is activated. Various actions can trigger this event, such as launching the application for the first time, attempting to re-launch the application when it's already running, or clicking on the application's dock or taskbar icon.

This event is really useful when, instead of destroying the window when user want to close it, we hide instead. In my case, I have an <audio /> playing in the background I need to keep playing. So destroying the window is not a good solution, and minimizing the app instead of maximizing is slow and does not feel native.

Describe the solution you'd like

An app or window "activate" event that can be listened to (from the back-end at least).

Alternatives considered

No response

Additional context

No response

@amrbashir
Copy link
Member

I believe this is duplicate of #3084

@amrbashir amrbashir closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants