Only hide the window if we can actually bind the hide_window key

This commit is contained in:
Chris Jones 2009-08-07 22:31:18 +01:00
parent 88f005ee09
commit b3c6e06964
1 changed files with 2 additions and 3 deletions

View File

@ -361,11 +361,10 @@ class Terminator:
term.spawn_child () term.spawn_child ()
self.save_yourself () self.save_yourself ()
if hidden or self.conf.hidden:
self.hide()
try: try:
bindkey.tomboy_keybinder_bind(self.conf.keybindings['hide_window'],self.cbkeyCloak,term) bindkey.tomboy_keybinder_bind(self.conf.keybindings['hide_window'],self.cbkeyCloak,term)
if hidden or self.conf.hidden:
self.hide()
except: except:
dbg (_("Unable to bind hide_window key")) dbg (_("Unable to bind hide_window key"))
pass pass