diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-08-09 18:36:19 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-08-09 18:36:19 +0200 |
commit | ee76ed6b9c0c31a341d7633ae7424ede2ca3f154 (patch) | |
tree | 11bdeac6e464df5f27f477980c82f566be5d2c2f /src | |
parent | 44bc399ccbd7e37107ae754db7da3d918229422d (diff) |
Dont show search text when search is suggestion
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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), |