[dconf-editor] Indent.



commit 8d903c1378c16133b782f81a00acaa0dd0ea3aad
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Dec 1 01:07:52 2017 +0100

    Indent.

 editor/registry-search.vala |   54 +++++++++++++++++++++---------------------
 1 files changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/editor/registry-search.vala b/editor/registry-search.vala
index 0a1a229..490f5f0 100644
--- a/editor/registry-search.vala
+++ b/editor/registry-search.vala
@@ -366,38 +366,38 @@ class RegistrySearch : Grid, PathElement, BrowsableView
 
     public void start_search (string term)
     {
-        if (old_term == null || term != (!) old_term)
+        if (old_term != null && term == (!) old_term)
+            return;
+
+        SettingsModel model = window.model;
+        string current_path = window.current_path;
+        if (old_term != null && term.has_prefix ((!) old_term))
         {
-            SettingsModel model = window.model;
-            string current_path = window.current_path;
-            if (old_term != null && term.has_prefix((!) old_term))
-            {
-                pause_global_search ();
-                refine_local_results (term);
-                refine_bookmarks_results (term);
-                if ((!) old_term == "")
-                    start_global_search (model, current_path, term);
-                else
-                {
-                    refine_global_results (term);
-                    resume_global_search (current_path, term); // update search term
-                }
-            }
+            pause_global_search ();
+            refine_local_results (term);
+            refine_bookmarks_results (term);
+            if ((!) old_term == "")
+                start_global_search (model, current_path, term);
             else
             {
-                stop_global_search ();
-                search_results_model.remove_all ();
-                post_local = -1;
-                post_folders = -1;
-
-                local_search (model, current_path, term);
-                bookmark_search (model, current_path, term);
-                key_list_box.bind_model (search_results_model, new_list_box_row);
-                if (term != "")
-                    start_global_search (model, current_path, term);
+                refine_global_results (term);
+                resume_global_search (current_path, term); // update search term
             }
-            old_term = term;
         }
+        else
+        {
+            stop_global_search ();
+            search_results_model.remove_all ();
+            post_local = -1;
+            post_folders = -1;
+
+            local_search (model, current_path, term);
+            bookmark_search (model, current_path, term);
+            key_list_box.bind_model (search_results_model, new_list_box_row);
+            if (term != "")
+                start_global_search (model, current_path, term);
+        }
+        old_term = term;
     }
 
     private void refine_local_results (string term)


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