Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Dec 23, 2023
1 parent 59c55db commit 6cdd3bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,6 @@ impl Session {

let pages = window.pages();

if pages.is_empty() || pages.iter().all(|page| page.document().is_discardable()) {
continue;
}

let mut pages_state = Vec::new();
for page in pages {
let document = page.document();
Expand Down Expand Up @@ -286,6 +282,10 @@ impl Session {
});
}

if pages_state.is_empty() {
continue;
}

windows_state.push(WindowState {
width: window.default_width(),
height: window.default_height(),
Expand Down

0 comments on commit 6cdd3bc

Please sign in to comment.