From 0070fe4061ea176a12065c6ca56aa56019ad7995 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sun, 7 Jun 2026 20:17:32 +0900 Subject: [PATCH] fix: suppress headers if no model is loaded --- dzgui/views/trees/tree_mods.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dzgui/views/trees/tree_mods.py b/dzgui/views/trees/tree_mods.py index e8340d7..b39daf0 100644 --- a/dzgui/views/trees/tree_mods.py +++ b/dzgui/views/trees/tree_mods.py @@ -30,8 +30,6 @@ class ModTreeView(ModsMixin, ContextMixin, TreeView): # type: ignore emitter.connect("mods_highlighted", self._on_mods_highlighted) self.set_fixed_height_mode(True) - self.set_headers_visible(True) - self.set_model(None) for i, column_title in enumerate(strings.mod_cols): @@ -64,6 +62,7 @@ class ModTreeView(ModsMixin, ContextMixin, TreeView): # type: ignore def _on_mods_updated(self, emitter: "Emitter", msg: str, mods: int) -> None: if mods < 1: return + self.set_headers_visible(True) path = Gtk.TreePath.new_from_indices([0]) self.set_cursor(path)