2023-01-28 14:11:46 +00:00
|
|
|
#include <imgui.h>
|
|
|
|
|
2023-02-04 07:31:50 +00:00
|
|
|
#include "../misc.h"
|
2023-02-01 15:22:08 +00:00
|
|
|
#include "../fragments/filters.h"
|
2023-01-28 14:11:46 +00:00
|
|
|
#include "../filters.h"
|
2023-01-31 14:40:04 +00:00
|
|
|
#include "../config.h"
|
2023-01-28 14:11:46 +00:00
|
|
|
#include "filters.h"
|
|
|
|
|
2023-02-05 15:57:46 +00:00
|
|
|
void filters_window(Config& __restrict active_config, Config& __restrict inactive_config,
|
2023-01-28 14:11:46 +00:00
|
|
|
const std::vector<LogcatEntry>& logcat_entries, std::vector<size_t>& filtered_logcat_entry_offsets,
|
|
|
|
bool* p_open) {
|
2023-02-04 07:31:50 +00:00
|
|
|
if (!ImGui::BeginWithCloseShortcut("Filters", p_open)) {
|
2023-01-28 14:11:46 +00:00
|
|
|
ImGui::End();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-02-01 15:22:08 +00:00
|
|
|
filters_fragment(active_config, active_config.filters, inactive_config.filters, logcat_entries, filtered_logcat_entry_offsets, p_open);
|
2023-01-28 14:11:46 +00:00
|
|
|
|
|
|
|
ImGui::End();
|
|
|
|
}
|