From d225b652223934dd40c3523215524b5e102bbeed Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Mon, 3 Jul 2023 18:06:35 +0200 Subject: [PATCH] feat: add dedicated duplicate profile button --- src/ui/main_view.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui/main_view.rs b/src/ui/main_view.rs index 14f7ce5..31e71eb 100644 --- a/src/ui/main_view.rs +++ b/src/ui/main_view.rs @@ -178,6 +178,13 @@ impl SimpleComponent for MainView { sender.input(Self::Input::EditProfile); } }, + gtk::Button { + set_icon_name: "edit-copy-symbolic", + set_tooltip_text: Some("Duplicate Profile"), + connect_clicked[sender] => move |_| { + sender.input(Self::Input::DuplicateProfile); + } + }, gtk::Button { set_icon_name: "list-add-symbolic", set_tooltip_text: Some("Create Profile"),