From 7715b94be546768e31b1c0ab4b32b84656b03fe5 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 14 Oct 2024 01:58:34 +0800 Subject: [PATCH] feat: compatibility with Yazi 0.4 --- mime-ext.yazi/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mime-ext.yazi/init.lua b/mime-ext.yazi/init.lua index 457f463..be2fb61 100644 --- a/mime-ext.yazi/init.lua +++ b/mime-ext.yazi/init.lua @@ -1069,7 +1069,8 @@ function M:fetch() end if next(updates) then - ya.manager_emit("update_mimetype", { updates = updates }) + ya.manager_emit("update_mimes", { updates = updates }) + ya.manager_emit("update_mimetype", { updates = updates }) -- TODO: remove this end if #unknown > 0 then