Clear logcat entries when (re)starting logcat
This commit is contained in:
parent
bda12e0112
commit
c43dd3a4db
|
@ -302,6 +302,7 @@ bool LogcatThread::_handle_start_request() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TODO what if *this->_logcat_command was mutated during copying?
|
||||||
std::string logcat_command = *this->_logcat_command;
|
std::string logcat_command = *this->_logcat_command;
|
||||||
if (logcat_command.empty()) {
|
if (logcat_command.empty()) {
|
||||||
logcat_command = default_logcat_command;
|
logcat_command = default_logcat_command;
|
||||||
|
|
|
@ -100,6 +100,8 @@ void main_window(bool latest_log_entries_read, ImFont* monospace_font, LogcatThr
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui::Button("Start", !logcat_running)) {
|
if (ImGui::Button("Start", !logcat_running)) {
|
||||||
|
logcat_entries.clear();
|
||||||
|
filtered_logcat_entry_offsets.clear();
|
||||||
logcat_thread.logcat_process_request.store(LogcatProcessRequest::Start);
|
logcat_thread.logcat_process_request.store(LogcatProcessRequest::Start);
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
@ -108,6 +110,8 @@ void main_window(bool latest_log_entries_read, ImFont* monospace_font, LogcatThr
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::Button("Restart", logcat_running)) {
|
if (ImGui::Button("Restart", logcat_running)) {
|
||||||
|
logcat_entries.clear();
|
||||||
|
filtered_logcat_entry_offsets.clear();
|
||||||
logcat_thread.logcat_process_request.store(LogcatProcessRequest::Start);
|
logcat_thread.logcat_process_request.store(LogcatProcessRequest::Start);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue