Skip to content

Commit

Permalink
only remove selected row on remove, not full rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Dec 30, 2023
1 parent a4966b3 commit 5ce9a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views/MainView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public class SwitchboardPlugUserAccounts.Widgets.MainView : Gtk.Box {
var selected_user = ((UserItem) listbox.get_selected_row ()).user;
mark_removal (selected_user);

update_listbox ();
listbox.remove (listbox.get_selected_row ());
listbox.select_row (listbox.get_row_at_index (0));

toast.title = _("Removed “%s").printf (selected_user.get_user_name ());
Expand Down

0 comments on commit 5ce9a71

Please sign in to comment.