Skip to content

Commit

Permalink
Fixed minor issue with clicking headers for sorting with filtration a…
Browse files Browse the repository at this point in the history
…ctive.
  • Loading branch information
adamharrison committed Jan 11, 2025
1 parent 4a21254 commit 34c2398
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/plugin_manager/plugin_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34c2398

Please sign in to comment.