From ee76ed6b9c0c31a341d7633ae7424ede2ca3f154 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 9 Aug 2021 18:36:19 +0200 Subject: Dont show search text when search is suggestion --- src/QuickMedia.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index dc23892..1823df8 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1628,9 +1628,9 @@ namespace QuickMedia { tabs[selected_tab].body->draw(window, body_pos, body_size, *json_chapters); if(tab_associated_data.fetching_next_page_running) - window.draw(gradient_points, 4, sf::Quads); // Note: sf::Quads doesn't work with egl + window.draw(gradient_points, 4, sf::Quads); // TODO: sf::Quads doesn't work with egl - if(!tab_associated_data.search_result_text.getString().isEmpty()) { + if(!tab_associated_data.search_result_text.getString().isEmpty() && !tabs[selected_tab].page->search_is_suggestion()) { auto search_result_text_bounds = tab_associated_data.search_result_text.getLocalBounds(); tab_associated_data.search_result_text.setPosition( std::floor(body_pos.x + body_size.x * 0.5f - search_result_text_bounds.width * 0.5f), -- cgit v1.2.3