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; }