From 5ce9a71b43e0f40fe4b1c9d14da57e913b1a734a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Fri, 29 Dec 2023 16:56:48 -0800 Subject: [PATCH] only remove selected row on remove, not full rebuild --- src/Views/MainView.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/MainView.vala b/src/Views/MainView.vala index 068c774d..f64cb7ca 100644 --- a/src/Views/MainView.vala +++ b/src/Views/MainView.vala @@ -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 ());