From 34c2398e69729b45ec2296c2c065f925389bbc37 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sat, 11 Jan 2025 13:57:20 -0500 Subject: [PATCH] Fixed minor issue with clicking headers for sorting with filtration active. --- plugins/plugin_manager/plugin_view.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/plugin_manager/plugin_view.lua b/plugins/plugin_manager/plugin_view.lua index eb581fe..0755a30 100644 --- a/plugins/plugin_manager/plugin_view.lua +++ b/plugins/plugin_manager/plugin_view.lua @@ -87,7 +87,9 @@ function PluginView:on_mouse_pressed(button, mx, my, clicks) local lh = style.font:get_height() + style.padding.y local x = self:get_content_offset() + style.padding.x - if my > self.position.y and my <= self.position.y + lh then + local column_headers_y = self.position.y + (self.filter_text and lh or 0) + + if my > column_headers_y and my <= column_headers_y + lh then for i, _ in ipairs(self.plugin_table_columns) do if mx > x and mx <= x + self.widths[i] then if i == self.sort.column then self.sort.asc = not self.sort.asc else self.sort.asc = true end