impr: Automatically scroll pattern console to the bottom when new lines are added
This commit is contained in:
parent
4f08ba3590
commit
bc98556897
1
lib/external/imgui/source/TextEditor.cpp
vendored
1
lib/external/imgui/source/TextEditor.cpp
vendored
@ -990,7 +990,6 @@ void TextEditor::Render() {
|
|||||||
|
|
||||||
if (mScrollToCursor) {
|
if (mScrollToCursor) {
|
||||||
EnsureCursorVisible();
|
EnsureCursorVisible();
|
||||||
ImGui::SetWindowFocus();
|
|
||||||
mScrollToCursor = false;
|
mScrollToCursor = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -302,6 +302,7 @@ namespace hex::plugin::builtin {
|
|||||||
std::scoped_lock lock(this->m_logMutex);
|
std::scoped_lock lock(this->m_logMutex);
|
||||||
|
|
||||||
this->m_consoleEditor.SetTextLines(*this->m_console);
|
this->m_consoleEditor.SetTextLines(*this->m_console);
|
||||||
|
this->m_consoleEditor.SetCursorPosition({ int(this->m_consoleEditor.GetTextLines().size()), 0 });
|
||||||
this->m_consoleNeedsUpdate = false;
|
this->m_consoleNeedsUpdate = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user