mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
change Event can_clear to clear
make this a bit more general, that it can be used for more then only can
This commit is contained in:
@@ -120,9 +120,9 @@ void Simulators::event_handler(json event)
|
||||
(std::array<uint8_t, 8>)event.at("payload"));
|
||||
break;
|
||||
}
|
||||
case Event::can_clear: {
|
||||
case Event::clear: {
|
||||
SPDLOG_DEBUG("Event {}: {}", type, (size_t)event.at("id"));
|
||||
invoke_active_simulator()->get_UI_item(event.at("id"))->can_clear();
|
||||
invoke_active_simulator()->get_UI_item(event.at("id"))->clear();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
||||
@@ -39,7 +39,7 @@ class Simulators : public QObject
|
||||
text_changed,
|
||||
selected,
|
||||
can_send,
|
||||
can_clear,
|
||||
clear,
|
||||
ui_changed,
|
||||
end,
|
||||
begin = 0
|
||||
|
||||
Reference in New Issue
Block a user