~elementary-apps/pantheon-terminal/master

« back to all changes in this revision

Viewing changes to src/Application.vala

  • Committer: Jeremy Wootten
  • Author(s): Alexander T Hale
  • Date: 2018-01-10 11:16:40 UTC
  • Revision ID: git-v1:ce8e3d02a3335ade5d9056f32886e9d03c2de5c1
Don't restore tabs in a new window (#189)

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        }
60
60
 
61
61
        public void new_window () {
62
 
            new PantheonTerminalWindow (this).present ();
 
62
            var window = get_last_window ();
 
63
 
 
64
            if (window == null) {
 
65
                new PantheonTerminalWindow (this).present ();
 
66
            } else {
 
67
                new PantheonTerminalWindow (this, false).present ();
 
68
            }
63
69
        }
64
70
 
65
71
        public PantheonTerminalWindow new_window_with_coords (int x, int y, bool should_recreate_tabs=true) {