dont traceback if we cant find a last active term
This commit is contained in:
parent
391f3adb81
commit
decd21e15f
|
@ -492,6 +492,8 @@ class Notebook(Container, Gtk.Notebook):
|
||||||
tabs_last_active_term = data['tabs_last_active_term']
|
tabs_last_active_term = data['tabs_last_active_term']
|
||||||
if tabs_last_active_term:
|
if tabs_last_active_term:
|
||||||
term = self.terminator.find_terminal_by_uuid(tabs_last_active_term.urn)
|
term = self.terminator.find_terminal_by_uuid(tabs_last_active_term.urn)
|
||||||
|
# if we can't find a last active term we must be starting up
|
||||||
|
if term is not None:
|
||||||
GObject.idle_add(term.ensure_visible_and_focussed)
|
GObject.idle_add(term.ensure_visible_and_focussed)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue