-
-
Notifications
You must be signed in to change notification settings - Fork 87
MenuBars continued #137
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
MenuBars continued #137
Conversation
edited
- Allow future calls to the menu bar to recreate it
- Support more events in a standard way
- Hide the popover when right-clicking to show the context menu
Tested while working on 2 different MenuBar app
No regression to report. {
"nativephp/electron": "dev-feature/menubars-continued",
"nativephp/laravel": "dev-feature/menubars-continued"
} |
I'm not sure I understand this. I didn't see any changes. I tried several combinations of right-clicking and left-clicking, and all seem fine both before and after. |
I was getting the popover remaining open and the context menu appearing on top of it... not sure how. But I explicitly added a line to hide the popover window on right-click and it fixed it for me |
Okay, I see it now. I understand. I didn't think it was a bug. I tried to test other apps, but I don't have many apps that have both. The only one that I use is Jetbrains Toolbox, and their context menu appears on top of the popover. To be fair, not many apps will use both the context menu and the popover. I gave it a thought for a bit and I clicked a thousand times on every icons of my navbar:
So. After an hour clicking around my final take is:
I found someone having the same issue there: max-mapper/menubar#155 And as why I wasn't seeing any changes, the dist/ version of the js file is not committed so I wasn't really testing the new javascript part. For future me: after changing branch with composer.json, don't forget to build the plugin: composer update -W
cd vendor/nativephp/electron/resources/js
npm install && npm run plugin:build An artisan command would be nice 😊 |
Yeah sorry for the long comment 😄
So go for it! I believe it's better to move quickly at this stage. Being opinionated isn't a bad thing. I don't think people will miss that "feature." Personally, I will update my app to place the refresh button on the popover instead of the context menu.
That's what I mentioned in my second part regarding the issues I linked. I believe we need to use the workaround I linked to make it function like JetBrains. Just remember to first check if |
I'm going to do this in a future PR |