Skip to content

Commit f6cebfa

Browse files
committed
Remove badges earlier
1 parent 49fa849 commit f6cebfa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/FolderManager/ProjectFolderItem.vala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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) => {

0 commit comments

Comments
 (0)