Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sugar/graphics/palettewindow.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sugar/graphics/palettewindow.py b/src/sugar/graphics/palettewindow.py
index eb7a55a..73c6ae7 100644
--- a/src/sugar/graphics/palettewindow.py
+++ b/src/sugar/graphics/palettewindow.py
@@ -641,6 +641,9 @@ class Invoker(gobject.GObject):
return self._palette
def set_palette(self, palette):
+ if self._palette is not None:
+ self._palette.popdown(immediate=True)
+
if self._palette:
self._palette.props.invoker = None