Skip to content

Commit

Permalink
fix: remove notification about sort method change
Browse files Browse the repository at this point in the history
The discussion tree takes some time to rebuild and for a short time there is a discrepancy between
the indicated sort method and the actual sorting. This will be less of a problem if harrisoncramer#432 is merged
so the user will see that the discussion tree is being refreshed.
  • Loading branch information
jakubbortlik committed Dec 5, 2024
1 parent 4f7caba commit 4a456bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gitlab/actions/discussions/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ M.toggle_sort_method = function()
else
state.settings.discussion_tree.sort_by = "original_comment"
end
u.notify("Sort discussion tree by '" .. state.settings.discussion_tree.sort_by .. "'", vim.log.levels.INFO)
winbar.update_winbar()
M.rebuild_view(false, true)
end

Expand Down

0 comments on commit 4a456bf

Please sign in to comment.