mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
UI
move every from_json over to use at
This commit is contained in:
+3
-3
@@ -30,9 +30,9 @@ void UI_dial::from_json(const json& j)
|
||||
{
|
||||
UI_item::from_json(j);
|
||||
|
||||
this->m_min = j["min"];
|
||||
this->m_max = j["max"];
|
||||
this->m_value = j["value"];
|
||||
this->m_min = j.at("min");
|
||||
this->m_max = j.at("max");
|
||||
this->m_value = j.at("value");
|
||||
}
|
||||
|
||||
json UI_dial::to_json() const
|
||||
|
||||
Reference in New Issue
Block a user