File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -569,6 +569,10 @@ namespace Scratch.FolderManager {
569569 dialog. run ();
570570
571571 if (search_term != null ) {
572+ // Remove results of previous search before attempting a new one
573+ remove_all_badges ();
574+ collapse_all ();
575+
572576 /* Put search term in search bar to help user locate the position of the matches in each doc */
573577 var search_variant = new Variant .string (search_term);
574578 var app = (Gtk . Application )GLib . Application . get_default ();
@@ -610,9 +614,6 @@ namespace Scratch.FolderManager {
610614 path_spec
611615 );
612616
613- remove_all_badges ();
614- collapse_all ();
615-
616617 if (monitored_repo != null && ! is_explicit) {
617618 try {
618619 monitored_repo. git_repo. file_status_foreach (status_options, (rel_path, status) = > {
You can’t perform that action at this time.
0 commit comments