dont traceback if we cant find a last active term

This commit is contained in:
Matt Rose 2020-06-15 20:59:09 -04:00
parent 391f3adb81
commit decd21e15f
1 changed files with 3 additions and 1 deletions

View File

@ -492,6 +492,8 @@ class Notebook(Container, Gtk.Notebook):
tabs_last_active_term = data['tabs_last_active_term']
if tabs_last_active_term:
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)
return True