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



commit e65da585fd25aa1be43df96284fe8478179ca37a
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]