From 9aecfa8da5daae017ce3ff21fd6b496fda2a690b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 25 Oct 2021 16:31:25 +0200 Subject: Submit on suggestion should make the search bar text the selected text --- include/SearchBar.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/SearchBar.hpp') diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index 528327e..12daf58 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -27,7 +27,7 @@ namespace QuickMedia { void update(); void onWindowResize(const sf::Vector2f &window_size); void clear(); - void set_text(const std::string &text); + void set_text(const std::string &text, bool update_search = true); void append_text(const std::string &text_to_add); void set_position(sf::Vector2f pos); void set_editable(bool editable); -- cgit v1.2.3