Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

Merge remote-tracking branch 'origin/main' into fix/back-arrows-leave-edit-text

Guillem Hermida5514756a6368
diff --cc crates/ui-egui/src/panels.rs
index 38d5dcd37,edfe63ebc..6cecdbd79
--- a/crates/ui-egui/src/panels.rs
+++ b/crates/ui-egui/src/panels.rs
@@@ -144,10 -149,14 +149,14 @@@ fn tool_row(ui: &mut egui::Ui, t: &Toke
}
fn tool_detail(app: &mut PdfCraftApp, ui: &mut egui::Ui, t: &Tokens, g: &'static ToolGroup) {
- let (back, close) = panel_header(ui, t, g.label, true);
+ if g.id == "edit" {
+ edit_panel(app, ui, t, g);
+ return;
+ }
+ let (back, close) = panel_header(ui, t, g.label, Some(tl!("Back to all tools")));
if back {
app.left = LeftPanel::AllTools;
- app.mode = crate::Mode::AllTools;
+ app.enter_mode(crate::Mode::AllTools);
}
if close {
app.left_open = false;