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 2e059a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,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 2e059a2

Please sign in to comment.