diff --git a/App/UI/MainWindow.cs b/App/UI/MainWindow.cs index 6069293..80d5e7a 100644 --- a/App/UI/MainWindow.cs +++ b/App/UI/MainWindow.cs @@ -27,12 +27,12 @@ public class MainWindow } shortcutsGroup = group; - var addButton = builder.GetObject("add_shortcut_button") as ButtonRow; + var addButton = builder.GetObject("add_shortcut_button") as Gtk.Button; if (addButton == null) { throw new Exception("Failed to load UI element with ID: add_shortcut_button"); } - addButton.OnActivated += OnAddShortcutClicked; + addButton.OnClicked += OnAddShortcutClicked; // Initialize the observable collection with property binding shortcuts = new PasswordStoreShortcutCollection(shortcutsGroup); diff --git a/App/UI/MainWindow.xml b/App/UI/MainWindow.xml index a723c8b..7c06d32 100644 --- a/App/UI/MainWindow.xml +++ b/App/UI/MainWindow.xml @@ -26,7 +26,17 @@ - + + + + list-add-symbolic + center + + + + @@ -35,17 +45,6 @@ - - - - - - list-add-symbolic - Add - - - -