Closed aadcg closed 7 months ago
I think you can wait indefinitely and it will never emit the "ready" signal. That is what I experienced on Qt. Not sure if it is different here. If you think this signal will work, perhaps it is the way.
When you mention Qt, do you mean Nyxt's support for QtWebEngine or that Electron's binary relies on Qt for Linux?
I mean when in the past I was using QtWebEngine
The signal works properly on Electron.
OK then :-)
Well, I've waited, and waited... and I've never seen this signal emitted. If we add a "isReady" listener, will it magically start being emitted? This by the way has led to bugs of javascript not being evaluated in the message buffer.
One thing at a time @jmercouris. No information is better than bad information. This is not related to JS evaluation in the message buffer.
Except... it is! You shall see later today.
If it would be, then I wouldn't be able to accomplish what you see below.
I DON'T BELIEVE I CANNOT BELIEVE
Commit 372d81f0daccc2a207d257680c15ff63263375dd solved this issue.
We may have to return to this topic, but the issue needs to be re-framed.
Instead of relying on this workaround, which has serious consequences, I suggest checking whether
app.isReady()
returnstrue
.From the docs:
More info about the ready app event.
@jmercouris I'm just wondering: (1) were you unaware of this or (2) did you assume that the app would be ready?