[gnome-builder] grep: Don't show project tree Find in Files menu items when unavailable
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] grep: Don't show project tree Find in Files menu items when unavailable
- Date: Tue, 20 Jul 2021 19:55:35 +0000 (UTC)
commit 48054f833ef7e5f8b6a9594398bbd19955f74eaa
Author: vanadiae <vanadiae35 gmail com>
Date: Tue Jul 20 19:28:51 2021 +0200
grep: Don't show project tree Find in Files menu items when unavailable
Currently it shows even with the VCS/Build/Tests project tree section.
So do like all other menu items and use hidden-when=action-disabled.
src/plugins/grep/gtk/menus.ui | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/plugins/grep/gtk/menus.ui b/src/plugins/grep/gtk/menus.ui
index c9d8db92d..c035a1acb 100644
--- a/src/plugins/grep/gtk/menus.ui
+++ b/src/plugins/grep/gtk/menus.ui
@@ -3,6 +3,7 @@
<menu id="project-tree-menu">
<section id="project-tree-menu-placeholder2">
<item>
+ <attribute name="hidden-when">action-disabled</attribute>
<attribute name="label" translatable="yes">_Find in Files</attribute>
<attribute name="action">grep.find-in-files</attribute>
</item>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]