Keep project folder open when loading request

This commit is contained in:
vesp 2026-01-05 02:20:48 +01:00
parent b042b9cb30
commit 8ca7bd0baf
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@
<property name="spacing">0</property>
<child>
<object class="GtkBox">
<object class="GtkBox" id="header_box">
<property name="orientation">horizontal</property>
<property name="spacing">6</property>
<property name="margin-start">6</property>

View File

@ -27,6 +27,7 @@ class ProjectItem(Gtk.Box):
__gtype_name__ = 'ProjectItem'
header_box = Gtk.Template.Child()
project_icon = Gtk.Template.Child()
name_label = Gtk.Template.Child()
requests_revealer = Gtk.Template.Child()
@ -51,7 +52,7 @@ class ProjectItem(Gtk.Box):
# Click gesture for header
gesture = Gtk.GestureClick.new()
gesture.connect('released', self._on_header_clicked)
self.add_controller(gesture)
self.header_box.add_controller(gesture)
def _setup_actions(self):
"""Setup action group for menu."""