Open
Description
What were you trying to do?
I'd like to have nothing happen (or the context menu appear) when left clicking the app in my system tray.
What happened?
When using onlyShowContextMenu
the app window did not appear, however a small whitebox did pop up.
How to reproduce the bug
public function boot(): void
{
Window::open();
MenuBar::create()
->onlyShowContextMenu()
->withContextMenu(
Menu::new()
->label('My Application')
->separator()
->link('https://nativephp.com', 'Learn more…')
->separator()
->quit()
);
}
Package Versions
nativephp/electron: 0.7.3, nativephp/laravel: 0.5.7, nativephp/php-bin: 0.5.4
PHP Version
8.3.11
Laravel Version
11.9
Node Version
22.9.0
Which operating systems have you seen this occur on?
Windows
OS version
Win 11 Version 24H2 (OS Build 261000.1742
Notes
Hopefully nothing specific but could be worth noting this is on an arm 64 windows device so is probably running through emulation. I will attempt to test on x64 at some point but I suspect this will persist.