[gnome-builder/wip/gtk4-port: 1276/1774] plugins/find-other-file: always clear state when swtiching pages




commit 7e7603804789d8217636382cf8c3353e282c4df2
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jun 1 13:00:51 2022 -0700

    plugins/find-other-file: always clear state when swtiching pages

 src/plugins/find-other-file/gbp-find-other-file-workspace-addin.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/find-other-file/gbp-find-other-file-workspace-addin.c 
b/src/plugins/find-other-file/gbp-find-other-file-workspace-addin.c
index 0e64b121f..8d0c4d933 100644
--- a/src/plugins/find-other-file/gbp-find-other-file-workspace-addin.c
+++ b/src/plugins/find-other-file/gbp-find-other-file-workspace-addin.c
@@ -139,11 +139,10 @@ gbp_find_other_file_workspace_addin_page_changed (IdeWorkspaceAddin *addin,
   g_assert (GBP_IS_FIND_OTHER_FILE_WORKSPACE_ADDIN (self));
   g_assert (!page || IDE_IS_PAGE (page));
 
+  gbp_find_other_file_workspace_addin_clear (self);
+
   if (!IDE_IS_EDITOR_PAGE (page))
-    {
-      gbp_find_other_file_workspace_addin_clear (self);
-      IDE_EXIT;
-    }
+    IDE_EXIT;
 
   context = ide_workspace_get_context (self->workspace);
   project = ide_project_from_context (context);


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