Skip to content

Commit

Permalink
don't restore selection when file failed to load
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Jan 3, 2024
1 parent 9bd6686 commit 2b2950e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ impl PageState {
if let Err(err) = page.load_file(file).await {
tracing::error!("Failed to load file for page: {:?}", err);
page.add_message_toast(&gettext("Failed to open file"));
return;
}

// Only restore selection once we have fully loaded the page's document.
Expand Down

0 comments on commit 2b2950e

Please sign in to comment.