Refine editor action shell and add regression tests
This commit is contained in:
@@ -32,25 +32,8 @@ void ConsolePanel::Render() {
|
||||
if (!content.IsOpen()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto logs = sink->GetLogs();
|
||||
size_t logIndex = 0;
|
||||
for (const auto& log : logs) {
|
||||
if (!m_filterState.Allows(log.level)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ImGui::PushID(static_cast<int>(logIndex));
|
||||
|
||||
const std::string fullMessage = UI::BuildConsoleLogText(log);
|
||||
if (UI::DrawConsoleLogRow(fullMessage.c_str())) {
|
||||
ImGui::SetClipboardText(fullMessage.c_str());
|
||||
}
|
||||
|
||||
ImGui::PopID();
|
||||
logIndex++;
|
||||
}
|
||||
|
||||
Actions::DrawConsoleLogRows(*sink, m_filterState);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user