Skip to content

Commit

Permalink
fix(app): keep page pane selected after adding new page to book
Browse files Browse the repository at this point in the history
Signed-off-by: Deep Panchal <deep302001@gmail.com>
  • Loading branch information
deepanchal committed Jul 5, 2024
1 parent 3872604 commit 4ccc132
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ impl App {
.arg(&book.name)
.status()?;
tui.enter()?;
action_tx.send(Action::LoadActiveBookPages)?;
action_tx.send(Action::UpdateActiveBookPages)?;
action_tx.send(Action::LoadActivePageContent)?;
} else {
log::error!("No active book to add page to");
}
Expand Down

0 comments on commit 4ccc132

Please sign in to comment.