diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-09 05:38:12 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-09 05:38:14 +0200 |
commit | 10fcdec298ccef4971dc6d109222079a0f438004 (patch) | |
tree | 90124b9d9cfd51c582d4d212c08cd17893d0f4ea /include | |
parent | 452311e6bf54368a9dac94c8ee973febf015dfd1 (diff) |
Do not allow search until results are available
Diffstat (limited to 'include')
-rw-r--r-- | include/SearchBar.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index f1ac3fd..46f4383 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -8,7 +8,8 @@ namespace QuickMedia { using TextUpdateCallback = std::function<void(const sf::String &text)>; - using TextSubmitCallback = std::function<void(const sf::String &text)>; + // Return true to consume the search (clear the search field) + using TextSubmitCallback = std::function<bool(const sf::String &text)>; class SearchBar { public: |