[kupfer] ui: Clear interface directly in launch callback



commit 0f80de2c09eca0c713a9ee3b31af92142c6459b2
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri Mar 4 08:41:57 2011 +0100

    ui: Clear interface directly in launch callback
    
    Call interface.put_away() directly, while letting the window wait to
    hide.

 kupfer/ui/browser.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index 24fd9d3..1ef4494 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -1526,6 +1526,7 @@ class WindowController (pretty.OutputMixin):
 		# Separate window hide from the action being
 		# done. This is to solve a window focus bug when
 		# we switch windows using an action
+		self.interface.put_away()
 		self._window_hide_timer.set_ms(100, self.put_away)
 
 	def result_callback(self, sender, result_type):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]