badaix / snapweb

Web interface for Snapcast
GNU General Public License v3.0
86 stars 28 forks source link

ID changes every time #91

Open fuchsmich opened 6 days ago

fuchsmich commented 6 days ago

I'm not sure, if this is the right place to post this issue:

I'm using snapweb client for integrating snapcast on plasma (kde). There is an applet called "web browser", it opens a browser widget.

On the snapserver this client gets a new id every time you start a new desktop session (when the widget gets created).

So the settings (name and latency) get lost.

Could somebody please give me hints on how to investigate and resolve this?

badaix commented 6 days ago

Snapweb is using the localstorage API to persist data. Everytime it starts, it will read the value for the key uniqueId from the local storage or create and store one, if it does not exist. So it seems that the applet doesn't persist the data.

fuchsmich commented 6 days ago

Thank you. Will try to resolve this and report back.

EDIT: The applet uses QML WebEngineView, which should store data, if not set otherwhise.