You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
await function won't fire until mouse clicked on any gui element #862
Describe the bug
QPushButton has await function on addEventListener('clicked' but when button is clicked the await function is not fired until mouse click on any other gui element. The event listener works fine, non await methods fire without issues.
To Reproduce
Steps to reproduce the behavior:
Create QPushButton
Enable event listener "clicked" with await function on click
Expected behavior
await method should run immediately when button is clicked.
Desktop (please complete the following information):
OS: Linux
NodeGUI version 0.33.1
OS Version Ubuntu 20.4
Additional context
In this example the await function is the node-fetch fetch method.
Sorry to revive a stale issue @a7ul, but I'm still getting this issue with the latest version of Qode. Using the dev version you sent works, however this isn't great, especially if I'm putting this in production
Note that I can only reproduce this on macOS, it works fine on Windows for whatever reason.
Activity
a7ul commentedon Aug 3, 2021
Yes this should be fixed in an upcoming release of qode.
nodegui/qode#35
adapt7 commentedon Aug 4, 2021
Thank you @a7ul
Is there an ETA when this release will be available?
Can I compile that upcoming release now, if so what's the best way to do it? Is it stable?
a7ul commentedon Aug 4, 2021
Hmm, so the eta would be end of this week mostly.
But in the meantime you could try this dev build of qode.
Mac x64:
Mac arm64:
Linux: x64:
So the way to go for now is:
extract the
qodebinary from archive above.And then replace the
qodebinary found atnode_modules/@nodegui/qode/binariesadapt7 commentedon Aug 4, 2021
and that's the game changer! Thank you @a7ul
foxt commentedon Aug 21, 2021
Sorry to revive a stale issue @a7ul, but I'm still getting this issue with the latest version of Qode. Using the dev version you sent works, however this isn't great, especially if I'm putting this in production
Note that I can only reproduce this on macOS, it works fine on Windows for whatever reason.