Giter VIP home page Giter VIP logo

Comments (25)

hummingly avatar hummingly commented on May 30, 2024 1

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.

from allusion.

RvanderLaan avatar RvanderLaan commented on May 30, 2024 1

Running yarn install (or just yarn) will do that, if everything is up to date it'll tell you that

from allusion.

schroef avatar schroef commented on May 30, 2024 1

i think yarn install did it know. Thought i did that already earlier today.

Thanks again

from allusion.

hummingly avatar hummingly commented on May 30, 2024

When I open the menu it also shows that I need to press ctrl + shift + = to zoom in.

from allusion.

hummingly avatar hummingly commented on May 30, 2024

The solution is to change the shortcut in main.ts:

{ role: 'zoomin', accelerator: 'CmdOrCtrl+=' }

but then it shows it in the menu as ctrl + =. Furthermore, clicking the menu entry doesn't do anything. I will try to look whether I can add it manually.

from allusion.

RvanderLaan avatar RvanderLaan commented on May 30, 2024

Other people add two shortcuts for zooming in (for both + and =) but that looks a little weird.
An alternative would be to add the shortcuts in the HotKeys component, and then manually adjusting the webFrame.zoomFactor instead of letting electron handle the shortcuts

from allusion.

hummingly avatar hummingly commented on May 30, 2024

@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.

from allusion.

RvanderLaan avatar RvanderLaan commented on May 30, 2024

Hmm, for me the buttons in the Electron toolbar work fine unless I'm focused on the devtools

from allusion.

hummingly avatar hummingly commented on May 30, 2024

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.

from allusion.

RvanderLaan avatar RvanderLaan commented on May 30, 2024

Right, that's really weird, I didn't check the release version before. Nice that you found a workaround!

from allusion.

schroef avatar schroef commented on May 30, 2024

Im looking at the master and i get errors when packaging this master

zoomfactor-error-argument png

from allusion.

hummingly avatar hummingly commented on May 30, 2024

Did you try yarn install before packaging? I've updated electron and the packager.

from allusion.

schroef avatar schroef commented on May 30, 2024

ill try that, thanks!

from allusion.

schroef avatar schroef commented on May 30, 2024

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

from allusion.

schroef avatar schroef commented on May 30, 2024

Also awkward is that when i run yarn add electron i get version 5.0.0 but in the package.json it states dependencies "electron": "^6.0.1"?

from allusion.

hummingly avatar hummingly commented on May 30, 2024

Basically, you're installing the latest version of electron. You probably have now two electron versions in your node_modules.

from allusion.

schroef avatar schroef commented on May 30, 2024

You have any ideas why i know see errors with the menu items in main.ts I had so many issues again. Not sure why or what, updated a bunch of files and now i get these errors. While earlier it was working just fine??

Screen Shot 2019-08-10 at 16 04 37

from allusion.

hummingly avatar hummingly commented on May 30, 2024

Are you on master or another branch? This seems to be old code.

from allusion.

schroef avatar schroef commented on May 30, 2024

This is on master

from allusion.

schroef avatar schroef commented on May 30, 2024

Sorry this one is, but i get same error. The other one was i believe image-viewer-cssupdate.

Screen Shot 2019-08-10 at 16 13 26

from allusion.

hummingly avatar hummingly commented on May 30, 2024

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.

from allusion.

schroef avatar schroef commented on May 30, 2024

okay, i try if electron will update to 6 i wouldnt do that earlier. It would update/install but it was 5.0.8 ??

from allusion.

schroef avatar schroef commented on May 30, 2024

Ps i just checked electron and it is actually 6.0.1 i believe i installed it again with npm this time?
Its quite confussing again

from allusion.

schroef avatar schroef commented on May 30, 2024

I now did yarn install and then electron is 5.0.8???

from allusion.

hummingly avatar hummingly commented on May 30, 2024

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.

from allusion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.