diff --git a/Qt/simulatorbase.cpp b/Qt/simulatorbase.cpp index 2f6e8e9..4c92c2d 100644 --- a/Qt/simulatorbase.cpp +++ b/Qt/simulatorbase.cpp @@ -53,7 +53,7 @@ void SimulatorBase::on_event_cb(json& j) auto response = magic_enum::enum_cast(std::string(j.at("type"))).value_or(Web_socket_wrapper::Event::end); switch (response) { - case Web_socket_wrapper::Event::ui_changed: + case Web_socket_wrapper::Event::UI_changed: UI_item_parser(j); break; default: diff --git a/Qt/web_socket_wrapper.h b/Qt/web_socket_wrapper.h index 5c9c4d2..6e8a51b 100644 --- a/Qt/web_socket_wrapper.h +++ b/Qt/web_socket_wrapper.h @@ -26,7 +26,7 @@ class Web_socket_wrapper : public QObject value_changed, text_changed, selected, - ui_changed, + UI_changed, end, begin = 0 };