diff --git a/App/UI/MainWindow.xml b/App/UI/MainWindow.xml index 3505941..b854161 100644 --- a/App/UI/MainWindow.xml +++ b/App/UI/MainWindow.xml @@ -14,8 +14,8 @@ - 250 - 250 + 300 + 300 { Console.WriteLine($"[DEBUG] Opening: {shortcut.Path}"); }; return row; - } - - private void UpdateRowFromItem(PasswordStoreShortcut shortcut, ref ActionRow row) - { - row.SetTitle(shortcut.DisplayName); - row.SetSubtitle(shortcut.Path); + } + + private void UpdateRowFromItem(PasswordStoreShortcut shortcut, ref ActionRow row) + { + row.SetTitle(shortcut.DisplayName); + row.SetSubtitle(shortcut.Path); //Update icon - var existingIcon = row.GetFirstChild() as Gtk.Image; - if (existingIcon == null) - { - var icon = new Gtk.Image(); - icon.SetFromIconName(shortcut.IconName); - row.AddPrefix(icon); - } - else - { - existingIcon.SetFromIconName(shortcut.IconName); - } + var existingIcon = row.GetFirstChild() as Gtk.Image; + if (existingIcon == null) + { + var icon = new Gtk.Image(); + icon.SetFromIconName(shortcut.IconName); + row.AddPrefix(icon); + } + else + { + existingIcon.SetFromIconName(shortcut.IconName); + } + + // Edit button + var edit = new Button(); + edit.AddCssClass("flat"); + edit.SetValign(Align.Center); + edit.IconName = "document-edit-symbolic"; + row.AddSuffix(edit); } } \ No newline at end of file