Skip to content

Commit

Permalink
simplify logic for sanity sake
Browse files Browse the repository at this point in the history
  • Loading branch information
elbeardmorez committed Mar 11, 2018
1 parent 1686f97 commit 54bffe6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions quodlibet/quodlibet/qltk/paned.py
Expand Up @@ -182,9 +182,14 @@ def update(self, widget):

# lock other non-expander or expanded widgets
widgets = self.panelocks(self.root)
for w in (w for w in widgets
if w is not widget
and (not isinstance(w, Gtk.Expander) or w.get_expanded())):
for w in widgets:
if w is widget:
# ignore as this is the widget we're targetting to update!
continue
if isinstance(w, Gtk.Expander) and not w.get_expanded():
# ignore collapsed expanders
continue

# widget already changed. use stored if available
size = w.panelock.size
# print_d("%r | setting size request: %d" % (w.id, size))
Expand Down

0 comments on commit 54bffe6

Please sign in to comment.