1
0
mirror of synced 2024-09-24 11:38:26 +02: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;
}