aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp4
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),