Remove a few lines from windows/main.cpp

This commit is contained in:
blankie 2023-02-05 21:02:36 +07:00
parent 62b6b57b8d
commit fd2652b16e
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 6 deletions

View File

@ -44,6 +44,7 @@ static inline void render_table(ImFont* monospace_font, std::vector<LogcatEntry>
if (ImGui::TableSetColumnIndex(7)) ImGui::TextUnformatted(logcat_entry->message); if (ImGui::TableSetColumnIndex(7)) ImGui::TextUnformatted(logcat_entry->message);
} }
} }
clipper.End();
ImGui::PopFont(); ImGui::PopFont();
if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) { 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; *show_exclusions_window = true;
} }
ImGui::SameLine(); ImGui::SameLine();
bool open_logs; bool open_logs = latest_log_entries_read ? ImGui::Button("Logs") : ImGui::RedButton("Logs");
if (!latest_log_entries_read) {
open_logs = ImGui::RedButton("Logs");
} else {
open_logs = ImGui::Button("Logs");
}
if (open_logs) { if (open_logs) {
*show_logs_window = true; *show_logs_window = true;
} }