From 9b24928f74980ccc54ba87d6f7f855b89f6da1fd Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sun, 16 Aug 2026 13:38:39 +0900 Subject: [PATCH] fix: set selection mode on FlowBox --- dzgui/views/components/filter_panel.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dzgui/views/components/filter_panel.py b/dzgui/views/components/filter_panel.py index b93f06f..35a6ea4 100644 --- a/dzgui/views/components/filter_panel.py +++ b/dzgui/views/components/filter_panel.py @@ -29,7 +29,12 @@ if TYPE_CHECKING: class ButtonGrid(Gtk.Grid): - def __init__(self, controller: "Controller", defaults: dict[str, str], tooltips: dict[str, str]) -> None: + def __init__( + self, + controller: "Controller", + defaults: dict[str, str], + tooltips: dict[str, str], + ) -> None: super().__init__( halign=Gtk.Align.CENTER, column_spacing=5, column_homogeneous=True ) @@ -39,7 +44,7 @@ class ButtonGrid(Gtk.Grid): self.checks: list[Gtk.CheckButton] = [] flowbox = Gtk.FlowBox( - halign=Gtk.Align.CENTER, min_children_per_line=3, max_children_per_line=3 + halign=Gtk.Align.CENTER, min_children_per_line=3, max_children_per_line=3, selection_mode=Gtk.SelectionMode.NONE ) for check in defaults.keys():