Open mischnic opened 6 years ago
Hi @mischnic , did you were able to identify the cause of this? I will take a look this weekend anyway. Thanks
The issue title contains all I know ("reloading App" meaning reloading a component containing the App component). It might have something to do with libui.startLoop and libui.stopLoop.
I'll have to test it on Linux as well.
@albe-rosado Have you found out anything?
will do today after work @mischnic
@albe-rosado Any news?
Nope, hopefully, I will be able to do something this weekend, anything from your side?
Unfortunately no. Yesterday I tested only if it has to do with the render methods in App
and Root
, but with no success so far.
It seems to happen only when the App
component is reloaded, but the only thing it does is handling onShouldQuit
https://github.com/kusti8/proton-native/blob/master/src/components/App.js. So I guess it has to have something to do with this.renderChildNode(this);
which calls render
on the Window
.
I just noticed that macOS is affected as well in that every App reload resets the window position.
Also strange:
The Window render methods start with:
if (!this.element) { this.element = new libui.UiWindow(...);
But this.element is undefined on every render because the Windows seems get recreated every time.
I will try my best to debug this in deep tomorrow. thanks a lot
https://github.com/albe-rosado/create-proton-app/pull/18