Skip to content

Commit

Permalink
Fix #100
Browse files Browse the repository at this point in the history
Using self.panel.hide() without calling
curses.panel.update_panels() before next refresh can really mess
stuff up. As far as I can tell, this was the real cause of #100.

This changes that call to the Modal's hide method instead, which
will keep this sort of issue from coming up again (hopefully)
  • Loading branch information
Derek Schmidt authored and ihabunek committed Apr 25, 2019
1 parent aff0c22 commit cb3885b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toot/ui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def __init__(self, stdscr):
self.window = curses.newwin(height, width, y, x)
self.draw()
self.panel = curses.panel.new_panel(self.window)
self.panel.hide()
self.hide()

def get_content(self):
raise NotImplementedError()
Expand Down Expand Up @@ -346,7 +346,7 @@ def __init__(self, stdscr, title, footer=None, size=(None, None), default=None):

self.draw()
self.panel = curses.panel.new_panel(self.window)
self.panel.hide()
self.hide()

def get_size_pos(self, stdscr):
screen_height, screen_width = stdscr.getmaxyx()
Expand Down

0 comments on commit cb3885b

Please sign in to comment.