You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Describe the problem
Electron supports an activate event (macOS-specific), triggered for example when calling the app from the doc or spotlight.
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
The text was updated successfully, but these errors were encountered: