mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-23 05:46:06 +00:00
HackStudio: Hide autocomplete popup when switching tabs
This commit is contained in:
committed by
Sam Atkins
parent
d4367f42ba
commit
95df712c2e
@@ -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();
|
||||
|
||||
@@ -203,6 +203,7 @@ public:
|
||||
|
||||
bool should_autocomplete_automatically() const { return m_autocomplete_timer; }
|
||||
void set_should_autocomplete_automatically(bool);
|
||||
void hide_autocomplete();
|
||||
|
||||
Optional<u32> const& substitution_code_point() const { return m_substitution_code_point; }
|
||||
void set_substitution_code_point(Optional<u32> code_point);
|
||||
@@ -320,7 +321,6 @@ private:
|
||||
void try_update_autocomplete(Function<void()> callback = {});
|
||||
void force_update_autocomplete(Function<void()> callback = {});
|
||||
void hide_autocomplete_if_needed();
|
||||
void hide_autocomplete();
|
||||
|
||||
int icon_size() const { return 16; }
|
||||
int icon_padding() const { return 2; }
|
||||
|
||||
Reference in New Issue
Block a user