Open ahmed-musallam opened 4 years ago
@ahmed-musallam did you ever figure something out for this? I think it would be cool as well.
@rwwagner90 I have not, not yet. ;(
Hi, this is implemented in https://github.com/webcatalog/neutron
It has an option in preference to letting users select whether use the menubar app or use the windowed app. The concept is just if (menubar) { create window } else { create menubar } .
And sadly, it requires a restart. But I think just destroy the menubar app and create a window is not that hard. As the main process is always running and handling the window creation.
Description
First, thank you for building this! it's awesome and I was able to build a cool app with it.
I want to implement this feature where a user can click a button and detach the window from the tray so that it becomes it's own separate window. The user should also be able to re-attach the window so it's back to appearing when clicking on the system tray icon. Is this possible?
I know I can create a new BrowserWindow and probably hack this together, but I'd like to use my existing window instead.
Thanks!