From 6dae2b40ea0c16f5be88335cb6cbf4e82d943f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 20 Aug 2026 01:33:26 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(app):=20redo=20has=20a=20toolb?= =?UTF-8?q?ar=20button=20beside=20undo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The toolbar only exposed undo as a click target, leaving redo (ctrl+y) reachable by keyboard alone. Add a sibling button and mention redo in the timeline hint line. --- crates/app/src/ui/timeline.rs | 7 ++++--- crates/app/src/ui/toolbar.rs | 10 ++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/crates/app/src/ui/timeline.rs b/crates/app/src/ui/timeline.rs index 9a44583..f3270ec 100644 --- a/crates/app/src/ui/timeline.rs +++ b/crates/app/src/ui/timeline.rs @@ -64,11 +64,12 @@ impl Player { &join_detail( &self.live_decode(position, state.is_playing()), &format!( - "{} copy · {} paste · {} undo · click the bar to seek · drop a file \ - to import", + "{} copy · {} paste · {} undo · {} redo · click the bar to seek · \ + drop a file to import", key(ActionId::Copy), key(ActionId::Paste), - key(ActionId::Undo) + key(ActionId::Undo), + key(ActionId::Redo) ), ), ), diff --git a/crates/app/src/ui/toolbar.rs b/crates/app/src/ui/toolbar.rs index a6a795a..9b898dc 100644 --- a/crates/app/src/ui/toolbar.rs +++ b/crates/app/src/ui/toolbar.rs @@ -337,6 +337,16 @@ impl Player { ActionId::Undo, cx.listener(|this, _: &ClickEvent, _, cx| this.undo(cx)), )) + .child(self.action_control( + "redo", + 0., + BG_RAISED(), + None, + "Redo", + "brings the undone edit back", + ActionId::Redo, + cx.listener(|this, _: &ClickEvent, _, cx| this.redo(cx)), + )) .child(separator()) .child(group_label("Track")) .child(self.action_control(