Finally and definitely fixed all flickering bugs

This commit is contained in:
Asmageddon 2012-05-28 22:38:07 +02:00
parent 6269076c7e
commit 33decd1780
6 changed files with 16 additions and 0 deletions

View File

@ -345,6 +345,7 @@ Please use commands from the command line, eg:\n
self.screen = mode
self.statusbars.screen = self.screen
reactor.addReader(self.screen)
mode.refresh()
def on_client_disconnect(self):
component.stop()

View File

@ -837,6 +837,9 @@ class AllTorrents(BaseMode, component.Component):
else:
curses.curs_set(0)
if component.get("ConsoleUI").screen != self:
return
self.stdscr.noutrefresh()
if self.popup:

View File

@ -89,6 +89,9 @@ class EventView(BaseMode):
else:
self.add_string(1,"{!white,black,bold!}No events to show yet")
if component.get("ConsoleUI").screen != self:
return
self.stdscr.noutrefresh()
curses.doupdate()

View File

@ -351,6 +351,9 @@ class Legacy(BaseMode, component.Component):
# Add the input string
self.add_string(self.rows - 1, self.input)
if component.get("ConsoleUI").screen != self:
return
# Move the cursor
try:
self.stdscr.move(self.rows - 1, self.input_cursor)

View File

@ -179,6 +179,9 @@ class Preferences(BaseMode):
# do this last since it moves the cursor
self.__draw_preferences()
if component.get("ConsoleUI").screen != self:
return
self.stdscr.noutrefresh()
if self.popup:

View File

@ -442,6 +442,9 @@ class TorrentDetail(BaseMode, component.Component):
self.more_to_draw = False
self.draw_files(self.file_list,0,off,0)
if component.get("ConsoleUI").screen != self:
return
self.stdscr.noutrefresh()
if self.popup: