Trending topics now have their names at startup

This commit is contained in:
Manuel Cortez 2015-08-31 08:15:37 -05:00
parent 2d35304ef0
commit 85ce5b0791

View File

@ -361,9 +361,9 @@ class Controller(object):
buffer.start_stream() buffer.start_stream()
buffer.searchfunction = self.search buffer.searchfunction = self.search
self.buffers.append(buffer) self.buffers.append(buffer)
self.view.insert_buffer(buffer.buffer, name=_(u"Trending topics for %s") % (buffer.name), pos=self.view.search(session.db["user_name"], session.db["user_name"]))
buffer.timer = RepeatingTimer(300, buffer.start_stream) buffer.timer = RepeatingTimer(300, buffer.start_stream)
buffer.timer.start() buffer.timer.start()
self.view.insert_buffer(buffer.buffer, name=_(u"Trending topics for %s") % (buffer.name_), pos=self.view.search(session.db["user_name"], session.db["user_name"]))
def set_buffer_positions(self,session): def set_buffer_positions(self,session):
"Sets positions for buffers if values exist in the database." "Sets positions for buffers if values exist in the database."