Browse files

hackish fixes to make it work.

  • Loading branch information...
1 parent 384838c commit cb3a0dc8625e2c043346efd709a9b51dfa4839c7 V committed Oct 26, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 autohide_dock.py
View
5 autohide_dock.py
@@ -58,6 +58,9 @@ def paintEvent(self, event):
def _multiSetVisible(self, widgets, state):
if self.currentState == state:
return
+ widgetsNotInExceptions = [w for w in widgets if w not in self.exceptions]
+ if len(widgetsNotInExceptions) == 0:
+ return
newExceptions = []
if state:
self.setVisible(False)
@@ -73,7 +76,7 @@ def _multiSetVisible(self, widgets, state):
for w in widgets:
w.setUpdatesEnabled(False)
- for w in [w for w in widgets if w not in self.exceptions]:
+ for w in widgetsNotInExceptions:
w.setVisible(state)
for w in widgets:
w.setUpdatesEnabled(True)

0 comments on commit cb3a0dc

Please sign in to comment.