Update HTTP based settings when new fullsettings are emited (#1122)

Previously, if someone were changing network or camera settings while the backend sent an update request, the frontend wouldn't update the UI until the HTTP request was sent, likely leading to an error or confusion, now, values will be reset whenever new settings are sent. It also checks that settings were changed before allowing the user to click the save button.
This commit is contained in:
Sriman Achanta
2024-01-06 09:43:29 -05:00
committed by GitHub
parent 851f2e4e68
commit bf156f544e
5 changed files with 119 additions and 89 deletions

View File

@@ -380,7 +380,6 @@ public class RequestHandler {
var data = kObjectMapper.readTree(ctx.body());
int index = data.get("index").asInt();
// double fov = data.get("settings").get("fov").asDouble();
var settings =
JacksonUtils.deserialize(data.get("settings").toString(), UICameraSettingsRequest.class);
var fov = settings.fov;