add server messages (with toasts!)

This commit is contained in:
caszuu
2026-02-27 16:03:18 +01:00
committed by xytovl
parent 7d11674b2a
commit c44940d004
6 changed files with 84 additions and 5 deletions
+6 -1
View File
@@ -1192,8 +1192,13 @@ void wivrn_session::reconnect(std::stop_token stop)
if (warn_conn)
{
// FIXME: show a warning pop-up on the client-side
U_LOG_W("Session resumed with outdated settings. Restart the server for settings to apply.");
// TODO: add server-side localization
send_control(to_headset::server_message{
.kind = to_headset::server_message::kind::stream_toast_urgent,
.msg = "Stream resumed with outdated settings. Restart the server for settings to apply.",
});
}
// update headset info