-
Notifications
You must be signed in to change notification settings - Fork 46
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
Zoom in / out not always working #69
Comments
When I open the menu it also shows that I need to press |
The solution is to change the shortcut in main.ts:
but then it shows it in the menu as |
Other people add two shortcuts for zooming in (for both + and =) but that looks a little weird. |
@RvanderLaan I'm adding manually the click functionality for zoom in/out and reset menu entries right now because it does not work. Leaving the shortcut to the HotKey component seems fine but I haven't fixed my shortcut issue with it (shift+/ on non-american keyboards). Alternatively, we register it ourselvers or add a button to the settings menu to show the hotkeys. |
Hmm, for me the buttons in the Electron toolbar work fine unless I'm focused on the devtools |
I tried the github release and packaged it myself but in both cases it does not zoom in/out or reset on clicking the menu entries in View. If I implement it myself, it does work. |
Right, that's really weird, I didn't check the release version before. Nice that you found a workaround! |
Did you try yarn install before packaging? I've updated electron and the packager. |
ill try that, thanks! |
Is there something which can check if dependencies are up to date? I seem to have this issue now and then. I dont see it until i try to package and then get an error |
Usually, you only see it in the commits or if your IDE keeps screaming at you that something is wrong even though it passed continous integration on Github already but else not that I know of. |
Running |
Also awkward is that when i run |
Basically, you're installing the latest version of electron. You probably have now two electron versions in your node_modules. |
Are you on master or another branch? This seems to be old code. |
This is on master |
Hmm, can you try yarn install on master branch? The only issue you could have is that it cannot recognize the role appMenu in the if statement for apple in line 35 because that is in a higher electron 5 release. |
okay, i try if electron will update to 6 i wouldnt do that earlier. It would update/install but it was 5.0.8 ?? |
Ps i just checked electron and it is actually 6.0.1 i believe i installed it again with npm this time? |
I now did yarn install and then electron is 5.0.8??? |
What is written in you package.json? It should be 5.0.8. It could be that in your node_module folder contains two versions and those are conflicting but that shouldn't be the issue. Well, restarting vscode might help, otherwise delete node_modules folder and run yarn install. |
i think yarn install did it know. Thought i did that already earlier today. Thanks again |
I noticed the new zoom in/out functions in the file menu system. However they dont always react properly for me on OSX. Also cmd + doesnt zoom on my end, i need to press cmd shift + in order to get it working. However cmd - does work. Sometimes it doesn do anything and also the menu items dont respond? Cant figure out whats wrong there though.
The text was updated successfully, but these errors were encountered: