HackStudio: Hide autocomplete popup when switching tabs

This commit is contained in:
Matthew Olsson
2023-01-10 20:12:40 -07:00
committed by Sam Atkins
parent d4367f42ba
commit 95df712c2e
2 changed files with 4 additions and 1 deletions

View File

@@ -1178,6 +1178,9 @@ void HackStudioWidget::set_current_editor_tab_widget(RefPtr<GUI::TabWidget> tab_
void HackStudioWidget::set_current_editor_wrapper(RefPtr<EditorWrapper> editor_wrapper)
{
if (m_current_editor_wrapper)
m_current_editor_wrapper->editor().hide_autocomplete();
m_current_editor_wrapper = editor_wrapper;
update_window_title();
update_current_editor_title();