Replies: 4 comments
-
It would be good to get a better idea of what you're trying to achieve, but on the surface I think you're right that this is missing. Because of the nature of PHP's request cycle and overall statelessness, it's 'non-trivial' to keep tabs on the windows available to your application. Not saying it's 'hard', necessarily; it could be as 'simple' as a bit of caching so that Window objects and config are available across multiple requests. Or it could be a request back over to Electron to fetch window state from Electron's internal state somehow. But then neither of these feel ideal: cached data on the PHP side could quickly fall out of step with reality and extra requests to Electron would create overhead. Worth experimenting. It feels to me like the |
Beta Was this translation helpful? Give feedback.
-
I recently encountered this problem and had to use a "state manger" and some events to see if the main apps window is open or not. This would be very useful in apps where windows can be opened and closed all the time |
Beta Was this translation helpful? Give feedback.
-
This is in progress |
Beta Was this translation helpful? Give feedback.
-
You can now use the |
Beta Was this translation helpful? Give feedback.
-
There is no option to check if window is opened. Maybe folks need more information about window so this is kind open for discussion. I need this to toggle (close / open) window.
Beta Was this translation helpful? Give feedback.
All reactions