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.screen = mode
|
||||||
self.statusbars.screen = self.screen
|
self.statusbars.screen = self.screen
|
||||||
reactor.addReader(self.screen)
|
reactor.addReader(self.screen)
|
||||||
|
mode.refresh()
|
||||||
|
|
||||||
def on_client_disconnect(self):
|
def on_client_disconnect(self):
|
||||||
component.stop()
|
component.stop()
|
||||||
|
|
|
@ -837,6 +837,9 @@ class AllTorrents(BaseMode, component.Component):
|
||||||
else:
|
else:
|
||||||
curses.curs_set(0)
|
curses.curs_set(0)
|
||||||
|
|
||||||
|
if component.get("ConsoleUI").screen != self:
|
||||||
|
return
|
||||||
|
|
||||||
self.stdscr.noutrefresh()
|
self.stdscr.noutrefresh()
|
||||||
|
|
||||||
if self.popup:
|
if self.popup:
|
||||||
|
|
|
@ -89,6 +89,9 @@ class EventView(BaseMode):
|
||||||
else:
|
else:
|
||||||
self.add_string(1,"{!white,black,bold!}No events to show yet")
|
self.add_string(1,"{!white,black,bold!}No events to show yet")
|
||||||
|
|
||||||
|
if component.get("ConsoleUI").screen != self:
|
||||||
|
return
|
||||||
|
|
||||||
self.stdscr.noutrefresh()
|
self.stdscr.noutrefresh()
|
||||||
curses.doupdate()
|
curses.doupdate()
|
||||||
|
|
||||||
|
|
|
@ -351,6 +351,9 @@ class Legacy(BaseMode, component.Component):
|
||||||
# Add the input string
|
# Add the input string
|
||||||
self.add_string(self.rows - 1, self.input)
|
self.add_string(self.rows - 1, self.input)
|
||||||
|
|
||||||
|
if component.get("ConsoleUI").screen != self:
|
||||||
|
return
|
||||||
|
|
||||||
# Move the cursor
|
# Move the cursor
|
||||||
try:
|
try:
|
||||||
self.stdscr.move(self.rows - 1, self.input_cursor)
|
self.stdscr.move(self.rows - 1, self.input_cursor)
|
||||||
|
|
|
@ -179,6 +179,9 @@ class Preferences(BaseMode):
|
||||||
# do this last since it moves the cursor
|
# do this last since it moves the cursor
|
||||||
self.__draw_preferences()
|
self.__draw_preferences()
|
||||||
|
|
||||||
|
if component.get("ConsoleUI").screen != self:
|
||||||
|
return
|
||||||
|
|
||||||
self.stdscr.noutrefresh()
|
self.stdscr.noutrefresh()
|
||||||
|
|
||||||
if self.popup:
|
if self.popup:
|
||||||
|
|
|
@ -442,6 +442,9 @@ class TorrentDetail(BaseMode, component.Component):
|
||||||
self.more_to_draw = False
|
self.more_to_draw = False
|
||||||
self.draw_files(self.file_list,0,off,0)
|
self.draw_files(self.file_list,0,off,0)
|
||||||
|
|
||||||
|
if component.get("ConsoleUI").screen != self:
|
||||||
|
return
|
||||||
|
|
||||||
self.stdscr.noutrefresh()
|
self.stdscr.noutrefresh()
|
||||||
|
|
||||||
if self.popup:
|
if self.popup:
|
||||||
|
|
Loading…
Reference in New Issue