Add a clear button

This commit is contained in:
blankie 2023-03-29 20:46:28 +07:00
parent 2a1233d95b
commit 1382d4b2ab
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 4 additions and 0 deletions

View File

@ -167,6 +167,10 @@ void main_window(bool latest_log_entries_read, ImFont* monospace_font, LogcatThr
ImGui::SameLine(); ImGui::SameLine();
ImGui::SeparatorEx(ImGuiSeparatorFlags_Vertical); ImGui::SeparatorEx(ImGuiSeparatorFlags_Vertical);
ImGui::SameLine(); ImGui::SameLine();
if (ImGui::Button("Clear")) {
logcat_entries.clear();
}
ImGui::SameLine();
if (ImGui::Button("Export")) { if (ImGui::Button("Export")) {
ImGui::OpenPopup("export_logcat"); ImGui::OpenPopup("export_logcat");
} }