From 4a456bfb5efca1ae8a0b05733a987078223c5b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20F=2E=20Bortl=C3=ADk?= Date: Thu, 5 Dec 2024 23:18:34 +0100 Subject: [PATCH] fix: remove notification about sort method change 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 #432 is merged so the user will see that the discussion tree is being refreshed. --- lua/gitlab/actions/discussions/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gitlab/actions/discussions/init.lua b/lua/gitlab/actions/discussions/init.lua index d41d2114..aaa4d48f 100644 --- a/lua/gitlab/actions/discussions/init.lua +++ b/lua/gitlab/actions/discussions/init.lua @@ -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