From d6d3f0810ca1cc45c8ae09c6710d50edbc184b05 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 7 Feb 2024 12:14:06 -0600 Subject: [PATCH] Fix: Add search buffers inside searches in GUI --- src/controller/mastodon/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/mastodon/handler.py b/src/controller/mastodon/handler.py index 753f2eba..633316cf 100644 --- a/src/controller/mastodon/handler.py +++ b/src/controller/mastodon/handler.py @@ -102,7 +102,7 @@ class Handler(object): # for i in session.settings["other_buffers"]["lists"]: # pub.sendMessage("createBuffer", buffer_type="ListBuffer", session_type=session.type, buffer_title=_(u"List for {}").format(i), parent_tab=lists_position, start=False, kwargs=dict(parent=controller.view.nb, function="list_timeline", name="%s-list" % (i,), sessionObject=session, name, bufferType=None, sound="list_tweet.ogg", list_id=utils.find_list(i, session.db["lists"]), include_ext_alt_text=True, tweet_mode="extended")) pub.sendMessage("createBuffer", buffer_type="EmptyBuffer", session_type="base", buffer_title=_("Searches"), parent_tab=root_position, start=False, kwargs=dict(parent=controller.view.nb, name="searches", account=name)) - searches_position =controller.view.search("searches", session.db["user_name"]) + searches_position =controller.view.search("searches", name) for term in session.settings["other_buffers"]["post_searches"]: pub.sendMessage("createBuffer", buffer_type="SearchBuffer", session_type=session.type, buffer_title=_("Search for {}").format(term), parent_tab=searches_position, start=True, kwargs=dict(parent=controller.view.nb, compose_func="compose_post", function="search", name="%s-searchterm" % (term,), sessionObject=session, account=session.get_name(), sound="search_updated.ogg", q=term, result_type="statuses")) # for i in session.settings["other_buffers"]["trending_topic_buffers"]: