Fix for invisible mode

This commit is contained in:
Manuel Cortez 2015-03-12 09:28:58 -06:00
parent 05f75bf5d0
commit 5926732c26

View File

@ -734,11 +734,10 @@ class Controller(object):
self.view.check_menuitem("autoread", autoread) self.view.check_menuitem("autoread", autoread)
def fix_wrong_buffer(self): def fix_wrong_buffer(self):
buffer = self.get_current_buffer() for i in self.accounts:
if isinstance(buffer, buffersController.accountPanel) and hasattr(buffer, "logged") and buffer.logged == False: buffer = self.view.search("home_timeline", i)
self.next_account() if buffer != None: break
elif buffer.session == None: self.view.change_buffer(buffer)
self.right()
def up(self, *args, **kwargs): def up(self, *args, **kwargs):
page = self.get_current_buffer() page = self.get_current_buffer()