1
0
mirror of synced 2024-11-12 02:00:52 +01:00

impr: Automatically scroll pattern console to the bottom when new lines are added

This commit is contained in:
WerWolv 2023-06-30 00:11:48 +02:00
parent 4f08ba3590
commit bc98556897
2 changed files with 1 additions and 1 deletions

View File

@ -990,7 +990,6 @@ void TextEditor::Render() {
if (mScrollToCursor) {
EnsureCursorVisible();
ImGui::SetWindowFocus();
mScrollToCursor = false;
}
}

View File

@ -302,6 +302,7 @@ namespace hex::plugin::builtin {
std::scoped_lock lock(this->m_logMutex);
this->m_consoleEditor.SetTextLines(*this->m_console);
this->m_consoleEditor.SetCursorPosition({ int(this->m_consoleEditor.GetTextLines().size()), 0 });
this->m_consoleNeedsUpdate = false;
}