Finally and definitely fixed all flickering bugs
This commit is contained in:
parent
6269076c7e
commit
33decd1780
|
@ -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()
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue