Skip to content

Commit

Permalink
Use function for remove_all
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed May 21, 2024
1 parent ac91fbb commit 143b97d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tasks_deps = [
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('granite-7', version: '>=7.0.0'),
dependency('gtk4'),
dependency('gtk4', version: '>=4.12'),
libecal_dep,
dependency('libedataserver-1.2'),
dependency('libgeoclue-2.0'),
Expand Down
4 changes: 1 addition & 3 deletions src/Widgets/TaskListGrid.vala
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ public class Tasks.Widgets.TaskListGrid : Gtk.Grid {
}

private void set_view_for_query (string query) {
while (task_list.get_row_at_index (0) != null) {
task_list.remove (task_list.get_row_at_index (0));
}
task_list.remove_all ();

if (view != null) {
Application.model.destroy_task_list_view (view);
Expand Down

0 comments on commit 143b97d

Please sign in to comment.