]> uap-core.de Git - mizunara.git/commitdiff
fix accidental selection master
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Wed, 23 Jul 2025 19:40:52 +0000 (21:40 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Wed, 23 Jul 2025 19:40:52 +0000 (21:40 +0200)
mizunara/gtk-filesview.c

index aa6f02497143144e091011b14d784a7acab6ad76..ce15178707fc79ccacb3e26f76d13e05c72d8d98 100644 (file)
@@ -336,7 +336,7 @@ void mz_files_view_snapshot(GtkWidget *widget, GtkSnapshot *snapshot) {
                             &highlight_rect);
                     GskRenderNode *highlight_clip_node = gsk_rounded_clip_node_new(highlight_node, &highlight_clip);
                     gtk_snapshot_append_node(snapshot, highlight_clip_node);
                             &highlight_rect);
                     GskRenderNode *highlight_clip_node = gsk_rounded_clip_node_new(highlight_node, &highlight_clip);
                     gtk_snapshot_append_node(snapshot, highlight_clip_node);
-                } else {
+                } else if(view->update_selection) {
                     view->items[i].isselected = 1;
                     selection_index = i;
                     selection_count++;
                     view->items[i].isselected = 1;
                     selection_index = i;
                     selection_count++;
@@ -757,6 +757,7 @@ static gboolean key_pressed(
             
             view->items[new_selected_index].isselected = TRUE;
             view->last_cursor_index = new_selected_index;
             
             view->items[new_selected_index].isselected = TRUE;
             view->last_cursor_index = new_selected_index;
+            int update = view->update_selection;
             view->selection_count = 1;
         }
     }
             view->selection_count = 1;
         }
     }