[nautilus] list-base: Update files view selection text when item removed



commit 6981ad8777f2fe6d50e8c9a66d274a324aef79cb
Author: Corey Berla <corey berla me>
Date:   Mon Jul 25 13:35:07 2022 -0700

    list-base: Update files view selection text when item removed
    
    The selection text at the bottom on the view is usually updated
    via the signal from the view-model GtkSelectionModel::selection-changed
    
    This works except when items are removed, the signal emits before
    the item is fully removed.  Rather than listening for all item changes
    (i.e. GListModel::items-changed), update the selection text when
    items are removed
    
    Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2338

 src/nautilus-list-base.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/nautilus-list-base.c b/src/nautilus-list-base.c
index 49751c8c6..4bd754b8e 100644
--- a/src/nautilus-list-base.c
+++ b/src/nautilus-list-base.c
@@ -1040,6 +1040,7 @@ real_remove_file (NautilusFilesView *files_view,
     if (item != NULL)
     {
         nautilus_view_model_remove_item (priv->model, item);
+        nautilus_files_view_notify_selection_changed (files_view);
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]