Shortcut when no query

This commit is contained in:
Sumner Evans
2019-12-29 00:25:39 -07:00
parent 8c7c0b4f19
commit af4ae163f6

View File

@@ -323,6 +323,9 @@ class MainWindow(Gtk.ApplicationWindow):
# =========================================================================
def create_search_future(self, query):
def do_search():
if query == '':
return SearchResult()
search_fn = (
CacheManager.search3
if self.browse_by_tags else CacheManager.search2)