Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
796 stars 100 forks source link

[VisionGlass] Update phone UI according to connection state #1282

Closed felipeerias closed 6 months ago

felipeerias commented 7 months ago

This PR introduces a ModelView instance which can keep track of the connection state, so that the UI will be updated automatically.

The connection states are:

felipeerias commented 7 months ago

Built on top of https://github.com/Igalia/wolvic/pull/1281

svillar commented 6 months ago

I had other issues. Don't remember the exact steps but after starting Wolvic and then connecting the glasses I got the system dialogs and accepted them both. Them I got not one but two Wolvic dialogs reporting errors and then the Wolvic phone UI.

We should be careful because there are tons of potential combinations that the current code takes into account. We should not regress that.

felipeerias commented 6 months ago

@svillar I have updated the PR. Here's a short summary of the changes: