From fd2652b16e9528579666e704bc28b7914cc8a922 Mon Sep 17 00:00:00 2001 From: blankie Date: Sun, 5 Feb 2023 21:02:36 +0700 Subject: [PATCH] Remove a few lines from windows/main.cpp --- windows/main.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/windows/main.cpp b/windows/main.cpp index b60bcd2..314b5d5 100644 --- a/windows/main.cpp +++ b/windows/main.cpp @@ -44,6 +44,7 @@ static inline void render_table(ImFont* monospace_font, std::vector if (ImGui::TableSetColumnIndex(7)) ImGui::TextUnformatted(logcat_entry->message); } } + clipper.End(); ImGui::PopFont(); if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) { @@ -83,12 +84,7 @@ void main_window(bool latest_log_entries_read, ImFont* monospace_font, LogcatThr *show_exclusions_window = true; } ImGui::SameLine(); - bool open_logs; - if (!latest_log_entries_read) { - open_logs = ImGui::RedButton("Logs"); - } else { - open_logs = ImGui::Button("Logs"); - } + bool open_logs = latest_log_entries_read ? ImGui::Button("Logs") : ImGui::RedButton("Logs"); if (open_logs) { *show_logs_window = true; }