Fixed bug with overlapping loaders.
This commit is contained in:
@@ -355,14 +355,12 @@ class SubredditContent(BaseContent):
|
||||
else:
|
||||
raise SubredditNameError(display_name)
|
||||
|
||||
with loader():
|
||||
|
||||
# Verify that content exists for the given submission generator.
|
||||
# This is necessary because PRAW loads submissions lazily, and
|
||||
# there is is no other way to check things like multireddits that
|
||||
# don't have a real corresponding subreddit object.
|
||||
try:
|
||||
content = cls(display_name, submissions, loader)
|
||||
try:
|
||||
content.get(0)
|
||||
except:
|
||||
raise SubredditNameError(display_name)
|
||||
|
||||
@@ -216,7 +216,7 @@ class LoadScreen(object):
|
||||
|
||||
message_len = len(message) + len(trail)
|
||||
n_rows, n_cols = self._stdscr.getmaxyx()
|
||||
s_row = (n_rows - 2) // 2
|
||||
s_row = (n_rows - 3) // 2
|
||||
s_col = (n_cols - message_len - 1) // 2
|
||||
window = self._stdscr.derwin(3, message_len+2, s_row, s_col)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user