Skip to content

Commit

Permalink
Added missing check whether is current_terminal not null
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik committed Nov 1, 2023
1 parent 4a6bc7a commit 6f679aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ namespace Terminal {
if (focus_timeout == 0) {
focus_timeout = Timeout.add (20, () => {
focus_timeout = 0;
save_opened_terminals (true, true);
return Source.REMOVE;
});
}
Expand Down Expand Up @@ -1357,7 +1356,7 @@ namespace Terminal {
string[] opened_tabs = {};
int focused_tab = 0;

if (save_zooms) {
if (save_zooms && current_terminal != null) {
Application.saved_state.set_double ("zoom", current_terminal.font_scale);
}

Expand Down

0 comments on commit 6f679aa

Please sign in to comment.